Asymptotic Analysis (Discussion 7) (Phân tích tiệm cận) - Christine Zhou
- Seiten
- 11
- Định dạng
- PPTX
- Dung lượng
- 605 KB
- Trường
- University of California, Berkeley
- Aufrufe
- 0
- Kommentare
- 0
- Lượt tải
- 0
Vorschau wird generiert...
Bài giảng thảo luận số 7 về phân tích tiệm cận, bao gồm các bài tập về thời gian chạy đệ quy và ký hiệu Big O, Big Theta, Big Omega.
- Dokumentenname
- Asymptotic Analysis (Discussion 7) (Phân tích tiệm cận) - Christine Zhou
- Schule / Kurs
- University of California, Berkeley · Lập trình Java
- Inhalt
- Tài liệu này giới thiệu về phân tích tiệm cận và thời gian chạy của thuật toán, đặc biệt là các hàm đệ quy. Nó cũng đề cập đến các ký hiệu giới hạn tiệm cận như Big O, Big Theta và Big Omega.
- Inhaltsverzeichnis
- Agenda
- Announcements
- 1 More Running Time
- Practice Problem
- 2 Recursive Running Time
- 3 Hey you watchu gon do?
- Big Ballin’ Bounds
- 4 Big Ballin’ Bounds
- Seiten
- 11 Seiten
- Hochgeladen von
- Uni24h
Beschreibung
Trích nội dung tài liệu
Discussion 7: Asymptotic Analysis Christine Zhou Agenda Announcements Recursive Runtime Worksheet Announcements Remember to commit frequently! HW4 was due yesterday Proj1 is due this Friday! Extra OH on Wednesday 6-8PM, Thursday 7-9PM, most likely in the labs! Extra credit opportunity: Mid-semester survey! Keep your eyes peeled Advising Sessions: tinyurl.com/cs61b-advising CS 370 Signups! Discussion survey: tinyurl.com/disc7cz 1 More Running Time Practice Problem public void hello(int n) { if (n == 0) { return; } else { for (int i = 0; i < 10000000; i += 1) { System.out.println(“hello”); } hello(n-1); } } Let’s draw the “work done” tree! 2 Recursive Running Time There are some typos on the discussion sheet, sorry!! public void andslam(int N) { if (N > 0) { for (int i = 0; i < N; i += 1) { System.out.println(“bigballer.jpg”); } andslam(N/2); } } 2 Recursive Running Time 2 Recursive Running Time 3 Hey you watchu gon do? a) Algorithm 1 b) Neither c) Neither d) Algorithm 2 e) Neither Big Ballin’ Bounds Big Theta Big O Big Omega 4 Big Ballin’ Bounds
Häufig gestellte Fragen
Ist dieses Dokument kostenlos?
Ja. „Asymptotic Analysis (Discussion 7) (Phân tích tiệm cận) - Christine Zhou“ ist kostenlos — melden Sie sich einfach an und klicken Sie auf Herunterladen, um die Originaldatei zu erhalten.
Wie viele Seiten hat dieses Dokument?
Das Dokument hat 11 Seiten, für den Kurs Lập trình Java. Sie können es vor dem Herunterladen online in der Vorschau ansehen.
Kann ich vor dem Herunterladen eine Vorschau ansehen?
Ja. Sie können sich dieses Dokument direkt auf dieser Seite im Online-Reader ansehen und dann entscheiden, ob Sie es herunterladen möchten.
Asymptotic Analysis (Discussion 7) (Phân tích tiệm cận) - Christine Zhou
Vorschau wird generiert...
Trích nội dung tài liệu
Discussion 7: Asymptotic Analysis Christine Zhou Agenda Announcements Recursive Runtime Worksheet Announcements Remember to commit frequently! HW4 was due yesterday Proj1 is due this Friday! Extra OH on Wednesday 6-8PM, Thursday 7-9PM, most likely in the labs! Extra credit opportunity: Mid-semester survey! Keep your eyes peeled Advising Sessions: tinyurl.com/cs61b-advising CS 370 Signups! Discussion survey: tinyurl.com/disc7cz 1 More Running Time Practice Problem public void hello(int n) { if (n == 0) { return; } else { for (int i = 0; i < 10000000; i += 1) { System.out.println(“hello”); } hello(n-1); } } Let’s draw the “work done” tree! 2 Recursive Running Time There are some typos on the discussion sheet, sorry!! public void andslam(int N) { if (N > 0) { for (int i = 0; i < N; i += 1) { System.out.println(“bigballer.jpg”); } andslam(N/2); } } 2 Recursive Running Time 2 Recursive Running Time 3 Hey you watchu gon do? a) Algorithm 1 b) Neither c) Neither d) Algorithm 2 e) Neither Big Ballin’ Bounds Big Theta Big O Big Omega 4 Big Ballin’ Bounds
- Dokumentenname
- Asymptotic Analysis (Discussion 7) (Phân tích tiệm cận) - Christine Zhou
- Schule / Kurs
- University of California, Berkeley · Lập trình Java
- Inhalt
- Tài liệu này giới thiệu về phân tích tiệm cận và thời gian chạy của thuật toán, đặc biệt là các hàm đệ quy. Nó cũng đề cập đến các ký hiệu giới hạn tiệm cận như Big O, Big Theta và Big Omega.
- Inhaltsverzeichnis
- Agenda
- Announcements
- 1 More Running Time
- Practice Problem
- 2 Recursive Running Time
- 3 Hey you watchu gon do?
- Big Ballin’ Bounds
- 4 Big Ballin’ Bounds
- Seiten
- 11 Seiten
- Hochgeladen von
- Uni24h
Kommentare (0)
Noch keine Kommentare. Seien Sie der Erste!
Ôn tập lập trình Java (MT2 Review Solutions) - Ching and Christines
Asymptotics II, Search Trees (Discussion 7) (Kỹ thuật phân tích thời gian chạy, cây tìm kiếm nhị phân) - Christine Zhou
Introduction to Java (Discussion 1) (Giới thiệu về Java) - Christine Zhou
More Sorting (Discussion 13) (Thuật toán sắp xếp nâng cao) - Christine Zhou
Giáo trình Lập trình Java
Tổng hợp Đề Toán 5 - Luyện thi vào Lớp 6 - CLB EMath
Bài giảng vật lý đại cương (Chương 3) - Đỗ Ngọc Uấn
Chương 8.Nguyên tử - Vật lý đại cương 3 - TS.Nguyễn Thị Trang
Chương 7.Cơ học lượng tử - Vật lý đại cương 3 - TS.Nguyễn Thị Trang
Chương 6.Quang học lượng tử - Vật lý đại cương 3 - TS.Nguyễn Thị Trang

Kommentare (0)
Noch keine Kommentare. Seien Sie der Erste!