CS-2852 Data Structures Week 1, Class 1 Data Structures Syllabus 5/10/2019 CS-2852 Data Structures Week 1, Class 1 Data Structures Syllabus Review ArrayLists (maybe) This course is where the fun really begins. We will build bigger software componwents that let us quickly search, look up, and store data. We will learn how to put together classes, references, and arrays (and few new tools) into bigger, better structures. These data structures will allow us to quickly search and store data. What fun is data unless you can play with it? We will learn new algorithms for exploring and changing these structures, and new time complexity anlaysis techniques that allow us to predict how fast we can run a program. Review topics: High-level review: Inheritance, interfaces, exceptions, references, memory-maps Dangers of reference casting Protecting a cast with instanceof (p. 31) Package visibility (p. 44) Using / not using generics with ArrayLists (p. 66) Dr. Yoder
Slide style: Dr. Hornick CS2852 5/10/2019 Magic Growing Arrays Lists SE-1021 Dr. Josiah Yoder Slide style: Dr. Hornick Dr. Yoder
Slide style: Dr. Hornick Easy-insert lists SE-1021 Dr. Josiah Yoder Slide style: Dr. Hornick
Slide style: Dr. Hornick CS2852 5/10/2019 Trees Maps SE-1021 Dr. Josiah Yoder Slide style: Dr. Hornick Dr. Yoder
Slide style: Dr. Hornick CS2852 5/10/2019 Fast insert and lookup With a “hash” Maps SE-1021 Dr. Josiah Yoder Slide style: Dr. Hornick Dr. Yoder
Slide style: Dr. Hornick CS2852 5/10/2019 FIFOs and LIFOs Queues FIDO joke was confusing … it’s not FILO!! SE-1021 Dr. Josiah Yoder Slide style: Dr. Hornick Dr. Yoder
Slide style: Dr. Hornick http://www.polleverywhere.com/multiple_choice_polls/R8Onb4M2oET1TKp CS2852 5/10/2019 Used before? SE-2811 Dr. Josiah Yoder Slide style: Dr. Hornick Dr. Yoder
Slide style: Dr. Hornick http://www.polleverywhere.com/free_text_polls/BJQDQerwyb0wy1P CS2852 5/10/2019 Have you read the syllabus? SE-2811 Dr. Josiah Yoder Slide style: Dr. Hornick Dr. Yoder
Slide style: Dr. Hornick http://www.polleverywhere.com/free_text_polls/SM76seL7cMsNA1B CS2852 5/10/2019 Lab 1 deadline good? SE-2811 Dr. Josiah Yoder Slide style: Dr. Hornick Dr. Yoder
Slide style: Dr. Hornick http://www.polleverywhere.com/free_text_polls/9cmNPqxMmwg2MxI CS2852 5/10/2019 Better deadline for Lab 1? SE-2811 Dr. Josiah Yoder Slide style: Dr. Hornick Dr. Yoder
Slide style: Dr. Hornick http://www.polleverywhere.com/multiple_choice_polls/r1xhqAVFduh2gbC CS2852 5/10/2019 Most effective study SE-2811 Dr. Josiah Yoder Slide style: Dr. Hornick Dr. Yoder
Slide style: Dr. Hornick http://www.polleverywhere.com/free_text_polls/h0h6tEqKp8D7tDb CS2852 5/10/2019 Prof teaching SE-2811 Dr. Josiah Yoder Slide style: Dr. Hornick Dr. Yoder
Slide style: Dr. Hornick http://www.polleverywhere.com/free_text_polls/o4ZQ1oNIs7xxegQ CS2852 5/10/2019 Hard copy of the syllabus? SE-2811 Dr. Josiah Yoder Slide style: Dr. Hornick Dr. Yoder
Slide style: Dr. Hornick http://www.polleverywhere.com/multiple_choice_polls/lmwbDvkHuF3bKAe CS2852 5/10/2019 ????? SE-2811 Dr. Josiah Yoder Slide style: Dr. Hornick Dr. Yoder
Slide style: Dr. Hornick Key List Operations Append – Add to end of list Edit – Change value of existing element Insert – Add in middle of list Delete – Remove from list SE-1021 Dr. Josiah Yoder Slide style: Dr. Hornick
Slide style: Dr. Hornick http://www.polleverywhere.com/multiple_choice_polls/K1aXUDOt8R55o5B CS2852 5/10/2019 Use again? SE-2811 Dr. Josiah Yoder Slide style: Dr. Hornick Dr. Yoder