LinkedLists_I - CIS3023 Programming Fundamentals for CIS...

Info iconThis preview shows pages 1–7. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: 5/27/11 CIS3023: Programming Fundamentals for CIS Majors II Summer 2010 Ganesh Viswanathan Linked Lists Course Lecture Slides 23 July 2010 “ A list is only as strong as its weakest link .” --Donald Knuth 5/27/11 [News] Tropical storm Bonnie hit Biscayne Bay, FL this morning! Cr edits: 5/27/11 Data structure • A way of structuring, storing and organizing data in computers that facilitates efficient operations on the data. • Data structures help to devise algorithms for solving complex operations on the data in an efficient manner. 5/27/11 Data structures { 2 0 F C 1 8 4 -F 7 2 7 -4 3 5 9 -9 5 E 4 -8 6 4 9 8 B 4 E 2 C 4 7 } Array { F 0 7 1 3 5 D 6 -C 1 C 1 -4 B F -B 8 2 5 -B 8 3 4 1 D 6 B C 0 7 } Stack { 5 A 0 A 8 D B 8 -B C 5 -4 F B A -A 5 E C -9 7 1 B F D 5 4 1 9 E } List { B F C 5 9 7 5 D -4 2 B 5 -4 7 6 8 -B 1 F 8 -E A 2 5 A 2 E 0 6 4 5 A } Linked List { D F 4 6 0 B 9 C -0 5 6 F -4 B 3 8 -9 A 1 2 -7 1 6 3 9 E 3 2 1 D 2 4 } Queue { 2 9 2 B 2 F 7 4 -8 1 9 0 -4 3 7 2 -A 5 9 7 -E B E A B 7 0 1 7 3 C 1 } Graph { 4 1 A 6 5 7 4 9 -9 2 A F -4 6 2-A 0 F A -8 B 9 F 0 9 0 A F A 7 2 } Tree And many more! 5/27/11 ArrayList To insert (remove) an element in (from) the interior of an ArrayList requires shifting of data and is a linear-time O(n) operation! 5/27/11 Linked List • Is a collection of linked nodes (think of a chain !) • Memory allocation for nodes is non- contiguous • Sports constant time O(1) insertion and updates 5/27/11...
View Full Document

{[ snackBarMessage ]}

Page1 / 28

LinkedLists_I - CIS3023 Programming Fundamentals for CIS...

This preview shows document pages 1 - 7. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online