Asymptotic Analysis (Discussion 7) (Phân tích tiệm cận) - Christine Zhou
Génération de l'aperçu...
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
Résumé IA
- Nom du document
- Asymptotic Analysis (Discussion 7) (Phân tích tiệm cận) - Christine Zhou
- École / Cours
- University of California, Berkeley · Lập trình Java
- Contenu
- 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 des matières
- 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
- Téléversé par
- Uni24h
Foire aux questions
Ce document est-il gratuit ?
Oui. « Asymptotic Analysis (Discussion 7) (Phân tích tiệm cận) - Christine Zhou » est gratuit — il suffit de vous connecter et de cliquer sur Télécharger pour obtenir le fichier original.
Combien de pages compte ce document ?
Le document contient 11 pages, pour le cours Lập trình Java. Vous pouvez le prévisualiser en ligne avant de le télécharger.
Puis-je prévisualiser avant de télécharger ?
Oui. Vous pouvez prévisualiser ce document directement sur cette page avec le lecteur en ligne, puis décider de le télécharger ou non.
Asymptotic Analysis (Discussion 7) (Phân tích tiệm cận) - Christine Zhou
Génération de l'aperç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
Lire le document entier
- Nom du document
- Asymptotic Analysis (Discussion 7) (Phân tích tiệm cận) - Christine Zhou
- École / Cours
- University of California, Berkeley · Lập trình Java
- Contenu
- 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 des matières
- 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
- Téléversé par
- Uni24h
Commentaires (0)
Aucun commentaire pour le moment. Soyez le premier !
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
Commentaires (0)
Aucun commentaire pour le moment. Soyez le premier !