Discrrete mathematics for computer science series warmup

6 91 0
Discrrete mathematics for computer science series warmup

Đang tải... (xem toàn văn)

Thông tin tài liệu

Series Warmup A really bad way to maintain order • • • • • • Given a list L in order • • Unbeknownst to Joe, Sort does a bubble sort Suppose elements get added dynamically Problem is to keep it in order Joe has a sort function available Sort(L) He learned in CS50 not to reinvent any wheels So when a new element x arrives he appends it to the end of L: L

Ngày đăng: 22/03/2019, 12:00

Từ khóa liên quan

Mục lục

  • Slide 1

  • A really bad way to maintain order

  • Recall Bubble Sort Analysis

  • Slide 4

  • Slide 5

  • FINIS

Tài liệu cùng người dùng

Tài liệu liên quan