Question: d) Develop pseudo code to perform Binary Search in BSArray by making use of all data in KeyArray as search Keys. (5marks) e) Table Q4(d)
d) Develop pseudo code to perform Binary Search in BSArray by making use of all data in KeyArray as search Keys. (5marks) e) Table Q4(d) shows a binary tree structured BTArray with index, data, and two(2) pointer fields of LeftPtr and RightPtr. Choose node 7 as the root node, manually build the binary tree in BTArray starting from node 6 to node 1. (5 marks) Data Structures ECD1211(DCEE) FEB 2021(MAIN) 5/5 TableQ4(d) BTArray[8] CONTENT OF Convert BTArray BTArray to Binary Tree index data LeftPtr RightPtr 1 Z 0 2 K 0 0 3 F 4 T 0 5 Y 6 L ROOT M 0 0 7 OOOO d) Develop pseudo code to perform Binary Search in BSArray by making use of all data in KeyArray as search Keys. (5marks) e) Table Q4(d) shows a binary tree structured BTArray with index, data, and two(2) pointer fields of LeftPtr and RightPtr. Choose node 7 as the root node, manually build the binary tree in BTArray starting from node 6 to node 1. (5 marks) Data Structures ECD1211(DCEE) FEB 2021(MAIN) 5/5 TableQ4(d) BTArray[8] CONTENT OF Convert BTArray BTArray to Binary Tree index data LeftPtr RightPtr 1 Z 0 2 K 0 0 3 F 4 T 0 5 Y 6 L ROOT M 0 0 7 OOOO
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
