1 / 4

University of Palestine Faculty of Applied Engineering and Urban Planning

University of Palestine Faculty of Applied Engineering and Urban Planning Software Engineering Department Data structures and algorithm analysis Quiz #2. Quiz. Draw the binary tree representation of the following arithmetic expression: {[(5 + 2) * (2 − 1)]/[(2+ 9) + ((7 − 2) − 1)] }* 8

cherie
Download Presentation

University of Palestine Faculty of Applied Engineering and Urban Planning

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. University of Palestine Faculty of Applied Engineering and Urban Planning Software Engineering Department Data structures and algorithm analysis Quiz #2

  2. Quiz • Draw the binary tree representation of the following arithmetic expression: {[(5 + 2) * (2 − 1)]/[(2+ 9) + ((7 − 2) − 1)] }* 8 • If the tree is going to be implemented using an array what is the index of each node in the tree (write the index beside each node on the tree )

  3. Answer

  4. Answer * / 8 * + + - + - 5 2 2 1 2 9 - 1 7 2

More Related