CSC 210 Exam Guide
CSC 210 Exam Guide
CSC 210 Exam Guide
(d) Give the worst case time, average case time and best case time complexity of heap Sort (3mks)
(e) State the two properties of asymptotic notations (2mks)
(f) Highlight three advantages of sequential search algorithm (3mks)
(g) What is sorting algorithm? (2mks)
(h) Define the term linear probing in hashing technique (2mks)
2. (a) Draw the adjacency matrix for the directed graph given below (5mks)
arr[i+1],arr[high] = arr[high],arr[i+1]
(………………………………………)
5. (a) Differentiate between mini-Heap and max-Heap in binary search tree (BST) (5mks)
(b) Define the following terms used in graph data structure (6mks)
(i) Adjacency (ii) Edge (iii) Vertex
(c) Discuss the two measures used in algorithm complexity (4mks)
6. (a) Explain how the following operations work in binary search tree (BST) (5mks)
(i) Insertion in BST (ii) Deletion in BST
(b) Compute the space complexity for the following expression. (5mks)
{
int z = a + b + c;
Return(z);
}
(c) List the five steps involved in complete running time of an algorithm (5mks)