for friday
play

For Friday Read Weiss, chapter 7, sections 4-5 No homework Program - PowerPoint PPT Presentation

For Friday Read Weiss, chapter 7, sections 4-5 No homework Program 1 due Programming Assignment 1 Any questions? Homework Insertion Sort Basic concept: Conceptually split the list to be sorted into two parts: one that is


  1. For Friday • Read Weiss, chapter 7, sections 4-5 • No homework • Program 1 due

  2. Programming Assignment 1 • Any questions?

  3. Homework

  4. Insertion Sort • Basic concept: – Conceptually split the list to be sorted into two parts: one that is sorted and one that is not – Repeatedly insert the first element from the unsorted part into the sorted part.

  5. Performance of Sorting • What is the performance? • Each sort would be the best choice (of the simple sorts, at least) in certain situations — what situations? • What’s the space cost of these sorting algorithms?

  6. Shellsort • What’s the concept? • h-sorting • increment sequence • Shell’s sequence {1, 2, 4, 8, …} • Hibbard’s sequence {1, 3, 7, 15, …} • best sequence known { 1, 5, 19, 41, 109, …}

  7. Performance of Shellsort

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend