Cuitm205 Assignments
Cuitm205 Assignments
QUESTION 1
v) Big O notation
c) Using the binary tree below perform the following Tree traversal
i. Postorder [5]
ii. Inorder [5]
ASSIGNMENT 2 DUE- 07 MARCH 2025_HARDCOPY_GROUP ASSIGNMENT
QUESTION 1
QUESTION 2
Given a sorted list below demonstrate how the target element 7 can be located using a binary
search algorithm
[10]
QUESTION 3
Routers P, Q, R, S, T, U, V and W in a network are represented in the following undirected
graph. The weights on the edges is the time it takes in seconds to transmit data packets
between routers in the network
Use Dijkstra’s algorithm to find the shortest path from router P to other routers in the network
and determine the shortest path of transmitting data from Router P to router W [10]