Copy an array using pointers: Write a function that copies an array of integers using pointers.
Write a main function to test your functions....
Defining a person type using structures and pointers: Write a program that defines a(n):
person type (first name, last name, pointers to a father and a mother person)
function that displays the information of a person
Write a main function to test your functions....
Push delete print elements in a linked list: Write a program that defines a list of integers, then write functions to print, push head and delete head function. Test your functions using a main function....
Static implementation of a set - version 1: You are asked to give a static implementation of the ADT set having the following functions:
void toempty(SET *S)
int empty(SET S)
int find(int x, SET S)
void add(int x, SET *S)
void removeS(int x, SET *S)
void intersect(SET S1, SET S2, SET *R)
void ...
Static implementation of a set - version 2: You are asked to give a static implementation of the ADT set having the following functions:
void toempty(SET *S)
int empty(SET S)
int find(int x, SET S)
void add(int x, SET *S)
void removeS(int x, SET *S)
void intersect(SET S1, SET S2, SET *R)
void ...
Dynamic implementation of a set: You are asked to give a dynamic implementation of the ADT set having the following functions:
void toempty(SET *S)
int empty(SET S)
int find(int x, SET S)
void add(int x, SET *S)
void removeS(int x, SET *S)
void intersect(SET S1, SET S2, SET *R)
void...
Implementation of a set using an array of Boolean: You are asked to give an implementation of the ADT set using an array of Boolean and having the following functions:
void toempty(SET *S)
int empty(SET S)
int find(int x, SET S)
void add(int x, SET *S)
void removeS(int x, SET *S)
void intersect(SET ...
Implementation of a set using a long integer as bits: You are asked to give an implementation of the ADT set using an array of bits and having the following functions:
void toempty(SET *S)
int empty(SET S)
int find(int x, SET S)
void add(int x, SET *S)
void removeS(int x, SET *S)
void intersect(SET S1,...
Implementation of a set using an array of long integers as bits: You are asked to give an implementation of the ADT set using an array of bits and having the following functions:
void toempty(SET *S)
int empty(SET S)
int find(int x, SET S)
void add(int x, SET *S)
void removeS(int x, SET *S)
void intersect(SET S1,...
Disjoint sets - Well known union find algorithm: A disjoint-set data structure is a data structure that keeps track of a set of elements partitioned into a number of disjoint subsets. The union-find algorithm is an efficient and fast algorithm that performs many useful operations:
findSet: Determin...
Path between two vertices: Write a program that checks whether a path exists between two vertices in a graph.
Implement the graph using an adjacency list and use DFS....
Connected graph: Write a program that checks whether a graph is connected.
Implement the graph using an adjacency list and use DFS....