Docsity

Discrete smester project, Assignments of Discrete Mathematics

Toggle sidebar
bg1
1
National University of Computer & Emerging Sciences
Department of Computer Science
CS211 Discrete Structures
Semester Project
Instructions:
1. Make groups of 3 persons. Submit your group information (names, roll
numbers) on google classroom in comment section.
2. You must implement your project in programming language C++.
3. Import your algorithm also to word file.
4. Make a single Zip File(CPP codes + word file) with the convention
“SECTION_ROLLNO”.
5. You will have maximum marks if you have done the entire task
correctly.
6. Viva of each group will be conducted. Further details will be updated.
7. Plagiarism is strictly prohibited; -5 abs. would be given to students who
cheat.
8. A single violation of guideline will lead to Zero mark in your project.
9. Deadlines should be kept in mind NO extension in project dates.
10. Deadline 00-00-2020.
pf3
pf4
pf5

Partial preview of the text

Download Discrete smester project and more Assignments Discrete Mathematics in PDF only on Docsity!

National University of Computer & Emerging Sciences

Department of Computer Science

CS211 Discrete Structures

Semester Project

Instructions:

  1. Make groups of 3 persons. Submit your group information (names, roll numbers) on google classroom in comment section.
  2. You must implement your project in programming language C++.
  3. Import your algorithm also to word file.
  4. Make a single Zip File(CPP codes + word file) with the convention “SECTION_ROLLNO”.
  5. You will have maximum marks if you have done the entire task correctly.
  6. Viva of each group will be conducted. Further details will be updated.
  7. Plagiarism is strictly prohibited; - 5 abs. would be given to students who cheat.
  8. A single violation of guideline will lead to Zero mark in your project.
  9. Deadlines should be kept in mind NO extension in project dates.
  10. Deadline 00- 00 - 2020.

Project

The project includes Relations and graphs.

Relations:

Input: You must take two sets like A and B with a minimum of 3 elements

(arbitrary) in each set.

Output: Program will have to give us the following six results:

 The numbers of relations.  The number of reflexive Relations.  The number of symmetric Relations.  The Number of relation both symmetric and antisymmetric.  The number of antisymmetric relations.  The number of relations that are both reflexive and symmetric.

(A) Your task is to read these text files and store the data in a graph structure, and

then use this data to print the vertices of all the cycles found in the graph(s). For example, consider the following graphs, If an example is given to you as above, then the required output from you would be, (Note that in every cycle, no vertex is repeated. For example, in above example, 1 3 2 5 4 2 is not a valid cycle and should not be considered.) Total Cycles in the Graphs: 4 First Cycle: 1 3 2 Second Cycle: 2 5 4 Third Cycle: 3 2 5 Fourth Cycle: 6 7

(B) Your task is to read text files and store the data in a graph structure, and then

use this data to print graph is bipartite or complete bipartite or not. If graph is bipartite or complete bipartite then print set X and Y. For example, consider the following graphs, The given graph is bipartite graph ,the set X and Y is. X = {A,E,D} Y = {B,C}

(D) Find the shortest path from given data by using Prims and Kruskal. Create your own sample text files as given below For example (Prims), consider the following graph. Since all the vertices have been included in the MST(Minimum Spanning Tree). Now, Cost of Minimum Spanning Tree = Sum of all edge weights = 10 + 25 + 22 + 12 + 16 + 14 = 99 units Shortest path is 1 - > 6 - > 5 - > 4 - > 3 - > 2 - > 7 Best of Luck 😊 For example, consider the following Text file there is only one graph. 4 – This graph contains 4 vertices 1 2 5 – First vertex has an undirected edge connecting to the second vertex of the graph and third vertex show the weight of the edge. 2 3 4 2 4 1 3 4 2 3 1 7 4 1 3