






Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!







PROGRAM TITLE: Btec-Computing UNIT TITLE: Unit 18 - Discrete Maths ASSIGNMENT NUMBER: 02 ASSIGNMENT NAME: ASSIGNMENT 2 - Graph theory SUBMISSION DATE: Nov 28, 2021 TUTORIAL LECTURER: Lưu Thị Hương Giang WORD COUNT: 1577. STUDENT NAME: Nguyễn Bích Hạnh STUDENT ID: BKC 1985
Summative Feedback: Internal verification:
LO2: Analyse mathematical structures of objects using graph theory Part 1:
Are used to store as many nodes as possible d. Example Quantitative binary tree: Complete binary tree: In a complete binary tree, all the levels of a tree are filled entirely except the last level. In the last level, nodes might or might not be filled fully and which is filled from the left. A complete binary tree is just like a full binary tree, but with two major differences: All the leaf elements must lean towards the left. The last leaf element might not have a right sibling i.e. a complete binary tree doesn't have to be a full binary tree. Image Complete binary tree (https://www.geeksforgeeks.org/sideways-traversal-of-a-complete-binary- tree/ ) e. What is qualitative binary tree? A qualitative tree is a binary tree with internal nodes called splits and qualitatively constrained functions in the leaves. The splits define a partition of the state space into areas with common qualitative behaviour of the class variable. A split consists of a split attribute and a split value. f. Example Qualitative binary tree: Full Binary Tree: A full binary tree is also known as 2-tree in which every node other than the leaf nodes has two child nodes. It means all the leaf nodes should be at the same level and all other internal nodes should contain two child nodes each. In a full binary tree is a tree in which every node has either 0 or 2
min Q is used to store unprocessed vertices with their shortest path estimate est(v) as key values. Next it continuously extracts the minimum value u vertex (u) from min Q and stretches all the variable edges from u to any vertex in min Q. After one vertex is extracted from min Q and all Since all dilations through it are completed, the algorithm considers this vertex as processed and does not review it. The algorithm stops when the priority queue (min Q) is empty or when every vertex is checked exactly oncev
The above graph does not contain any Hamiltonian or Eulerian circuits, because: -There is no Hamilton because the graph has a vertex of degree 1. -There is no Eulerian because the graph has odd degrees. ii. The graph above does contains Hamilton circuit but no Eulerian circuits.