1. Trang chủ
  2. » Giáo án - Bài giảng

Discrrete mathematics for computer science series warmup

6 91 0

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

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Định dạng
Số trang 6
Dung lượng 0,97 MB

Nội dung

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