logo Use CA10RAM to get 10%* Discount.
Order Nowlogo
(5/5)

i need While a subset of N can be small (cardinal) and contain  very large numbers,it  is hollow in the sense that only few  numbers belong to it.on this exercice please 

INSTRUCTIONS TO CANDIDATES
ANSWER ALL QUESTIONS

Lists and sets

In set theory, a set intuitively designates a collection of objects (the elements of the set).

Example: A set of natural inties is rated N: No.0; 1; 2; 3; . . .

While a subset of N can be small (cardinal) and contain  very large numbers,it  is hollow in the sense that only few  numbers belong to it.

For example SN  is a hollow set of 5 elements..

We will use in this part the chained lists  to represent seeded  whole numbers. The most practical method in this case is to represent a hollow set  by u double-chained  list of its elements,  pointed by a left pointer  PGauche  and  a  right pointer   PDroite. The  itemsare  placplaced  on the list  in  ascending order. .

An item on the doubly chained list will therefore be characterized by the following information:

  1. A pointer on the left element;
  2. The value of the item;
  3. A pointer on the rightelement.

 

  1. After defining, in C, the EnsCreux data structure representing a hollow set, write a program allowing:
    1. Inserting an item in accordance with the growing order of the list;;
    2. Deleting an item based on its value;
    3. The display of the elements of the set in ascending order and respecting the following display format " 2; 37 ; 55 ; 231 ; 9999";
    4. The display ofelements of the set inthe déascending order;
    5. The destruction of the whole.
  2. Knowing that the elements appear only once in a set.
    1. Write the cardinal function returning the number of items in a set  (our list);
    2. Writing the function belongs to return 1 if an x element belongs to a set and 0 if not;
    3. Write the union function flipping the whole union of two sets entered into parameters;
      1. Definition: A C-unit of two sets A and B contains all the elements of A and all the elements of B without repetition.

 

 

(5/5)
Attachments:

Related Questions

. Introgramming & Unix Fall 2018, CRN 44882, Oakland University Homework Assignment 6 - Using Arrays and Functions in C

DescriptionIn this final assignment, the students will demonstrate their ability to apply two ma

. The standard path finding involves finding the (shortest) path from an origin to a destination, typically on a map. This is an

Path finding involves finding a path from A to B. Typically we want the path to have certain properties,such as being the shortest or to avoid going t

. Develop a program to emulate a purchase transaction at a retail store. This program will have two classes, a LineItem class and a Transaction class. The LineItem class will represent an individual

Develop a program to emulate a purchase transaction at a retail store. Thisprogram will have two classes, a LineItem class and a Transaction class. Th

. SeaPort Project series For this set of projects for the course, we wish to simulate some of the aspects of a number of Sea Ports. Here are the classes and their instance variables we wish to define:

1 Project 1 Introduction - the SeaPort Project series For this set of projects for the course, we wish to simulate some of the aspects of a number of

. Project 2 Introduction - the SeaPort Project series For this set of projects for the course, we wish to simulate some of the aspects of a number of Sea Ports. Here are the classes and their instance variables we wish to define:

1 Project 2 Introduction - the SeaPort Project series For this set of projects for the course, we wish to simulate some of the aspects of a number of

Ask This Question To Be Solved By Our ExpertsGet A+ Grade Solution Guaranteed

expert
Um e HaniScience

881 Answers

Hire Me
expert
Muhammad Ali HaiderFinance

505 Answers

Hire Me
expert
Husnain SaeedComputer science

771 Answers

Hire Me
expert
Atharva PatilComputer science

690 Answers

Hire Me