Quiz 6_Sol.docx - Quiz 6 Name: _ 1. Suppose that 80 90 70...

This preview shows page 1 - 2 out of 2 pages.

Quiz 6Name: ___________________________1.Suppose that 80 90 70 85 60 40 50 95 represents an array of Integer objects. Show the steps that a merge sorttakes when sorting this array.2.Show the steps that a radix sort takes when sorting the following array ofIntegerobjects:783 99 472 182 264 543 356 295 692 491 94
3.If you add the objects x, y, and z to an initially empty queue, in what order will three dequeue operations removethem from the queue?
4.If you add the objects x, y, and z to an initially empty deque, in what order will three removeBack operationsremove them from the deque?
5.After the following statements execute, what are the contents of the queue?
End of preview. Want to read all 2 pages?

Upload your study docs or become a

Course Hero member to access this document

Term
Fall
Professor
N/A
Tags
Java Programming, Java, Queue, Arrays, Radix Sort, Sorting, Jill Jane Jess Jim, Jill Jane Jess Jim Jill

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture