Question

Tree & Hash Table & Heap Use the following integer keys 73, 58, 91, 42, 60,...

Tree & Hash Table & Heap

Use the following integer keys 73, 58, 91, 42, 60, 130, 64, 87 to perform the followings:

a) Binary Search Tree

- Draw a binary search tree

- Retrieve the integers keys in post-order

- Retrieve the integers keys in pre-order

- Draw a binary search tree after node 58 is deleted

b) Create a Hash Table using the methods described below. Show the final array after all integer keys are inserted. Assumes that the Hash Table is implemented using an array of size 13. The integer keys are
73, 58, 91, 42, 60, 130, 64, 87

  • Linear Probing

Numbers

Index

0

1

2

3

4

5

6

7

8

9

10

11

12

  • Quadratic Probing

Numbers

Index

0

1

2

3

4

5

6

7

8

9

10

11

12

  • Double Hashing
    Constant = 5

Numbers

Index

0

1

2

3

4

5

6

7

8

9

10

11

12

b) Insertion and deletion in a Heap. Show the final array after all insertion and deletion are finished.

  • Heap (Insert)

Numbers

Index

0

1

2

3

4

5

6

7

8

9

10

11

12

                Draw a binary tree from the heap array


Heap (Remove)

Numbers

Index

0

1

2

3

4

5

6

7

8

9

10

11

12

                Draw a binary tree from the heap array after the removal is performed

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Please post remaining as another question

Add a comment
Know the answer?
Add Answer to:
Tree & Hash Table & Heap Use the following integer keys 73, 58, 91, 42, 60,...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT