



























Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




























Winter 2017 CSE373: Data Structures & Algorithms 1
Winter 2017 CSE373: Data Structures and Algorithms 2
Winter 2017 CSE373: Data Structures and Algorithms 4
create the empty result map while list has more names to process { firstName is name split up until space lastName is name split from space to the end if firstName not in the map yet { put firstName in map as a key with an empty set as the value } add lastName to the set for the first name move to the next name in the list }
Winter 2017 CSE373: Data Structures and Algorithms 5
Winter 2017 8 CSE373: Data Structures & Algorithms
insert element1 with priority 5 insert element2 with priority 3 insert element3 with priority 4 a = deleteMin // a =? b = deleteMin // b =? insert element4 with priority 2 insert element5 with priority 6 c = deleteMin // c =? d = deleteMin // d =? Winter 2017 11 CSE373: Data Structures & Algorithms
Winter 2017 13 CSE373: Data Structures & Algorithms
Winter 2017 14 CSE373: Data Structures & Algorithms
Winter 2017 16 CSE373: Data Structures & Algorithms
Winter 2017 17 CSE373: Data Structures & Algorithms
Winter 2017 19 CSE373: Data Structures & Algorithms
are these trees complete****?
Winter 2017 20 CSE373: Data Structures & Algorithms
incomplete 40
complete