Asymptotic Analysis (Discussion 7) (Phân tích tiệm cận) - Christine Zhou
Generating preview...
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.
Description
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
AI summary
- Document name
- Asymptotic Analysis (Discussion 7) (Phân tích tiệm cận) - Christine Zhou
- School / Course
- University of California, Berkeley · Lập trình Java
- Content
- 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.
- Table of contents
- 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
- Pages
- 11 pages
- Uploaded by
- Uni24h
Frequently asked questions
Is this document free?
Yes. “Asymptotic Analysis (Discussion 7) (Phân tích tiệm cận) - Christine Zhou” is free — just sign in and click Download to get the original file.
How many pages is this document?
The document has 11 pages, for the course Lập trình Java. You can preview it online before downloading.
Can I preview before downloading?
Yes. You can preview this document right on this page with the online reader, then decide whether to download.
Asymptotic Analysis (Discussion 7) (Phân tích tiệm cận) - Christine Zhou
Generating preview...
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
Read full document
- Document name
- Asymptotic Analysis (Discussion 7) (Phân tích tiệm cận) - Christine Zhou
- School / Course
- University of California, Berkeley · Lập trình Java
- Content
- 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.
- Table of contents
- 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
- Pages
- 11 pages
- Uploaded by
- Uni24h
Comments (0)
No comments yet. Be the first!
Final Review Solutions (Cấu trúc dữ liệu heap, hàng đợi ưu tiên và duyệt đồ thị) - Ching and Christines
Giáo trình Lập trình Java
Inheritance (Discussion 4) (Kế thừa trong Java) - Christine Zhou
Ôn tập lập trình Java (MT2 Review Solutions) - Ching and Christines
Misc.onclusion (Discussion 14-END) (Ôn tập cấu trúc dữ liệu) - Christine Zhou
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
Chương 5.Thuyết tương đối - Vật lý đại cương 3 - TS.Nguyễn Thị Trang
Chương 4. Tán xạ ánh sáng - Vật lý đại cương 3 - TS.Nguyễn Thị Trang
Chương 3.Phân cực ánh sáng - Vật lý đại cương 3 - TS.Nguyễn Thị Trang
Comments (0)
No comments yet. Be the first!