Misc.onclusion (Discussion 14-END) (Ôn tập cấu trúc dữ liệu) - Christine Zhou
Génération de l'aperçu...
Slide buổi thảo luận cuối cùng của trợ giảng Christine Zhou, bao gồm ôn tập cấu trúc dữ liệu, bài tập phỏng vấn, và tổng quan khóa học CS.
Description
Discussion 14: Misc.onclusion Christine Zhou Agenda Announcements Kahoot Design Q’s! CS Courses Overview Interview Question Tips Announcements Last discussion!! Want to talk about finals or anything else? Send me an email! RRR week announcements on Piazza by the end of this weekend! Project 3 Phase 2 due tonight! Checkoffs start today until Friday Project 3 gold points have been extended to Sunday Announcement to come later today Discussion survey: tinyurl.com/cz-disc14-sp19 Kahooooot https://create.kahoot.it/kahoots/my-kahoots Design! Nice! You got an interview with Oski Muskerjobs, CEO of BearbnBeats, the hot new music streaming startup headquartered in Soda Hall. For each of the following scenarios, determine which data structures (doesn’t have to be strictly Java) would give the best performance and what algorithms would be used. Additionally, give the worst-case runtime for any operations listed. BearbnBeats provides users access to millions of songs. Muskerjobs has a list of N (song, album) pairs. Assuming all album names are unique, find the number of songs in each album. Data Structures: HashMap<String, Integer> Algorithm: Iterate through the list of (song, album) pairs, maintaining a mapping from album name to number of songs, incrementing at each occurrence. Runtime: Θ(N) Muskerjobs has a list of all N song names in BearbnBeats’ database, and wants to query if a given Song is in the database. Optimize for both constructing the solution and matching a query. Data Structures: Set<Song> Algorithm: Iterate through the list of songs, adding each song to the set. Runtime: Θ(N) for construction and Θ(1) for query Muskerjobs wants to start developing auto-complete for search on BearbnBeats’ website. When a user types in the first K characters of a query, we want the website to suggest the number of songs that have the same K character prefix. Assume that no songs have a name longer than M and there are N distinct songs. Optimize for bo
Résumé IA
- Nom du document
- Misc.onclusion (Discussion 14-END) (Ôn tập cấu trúc dữ liệu) - Christine Zhou
- École / Cours
- University of California, Berkeley · Lập trình Java
- Auteur (dans le document)
- Christine Zhou
- Contenu
- Tài liệu này là biên bản thảo luận cuối cùng, cung cấp thông báo, các bài tập thiết kế về cấu trúc dữ liệu và thuật toán cho các tình huống thực tế, và tổng quan về các khóa học CS.
- Table des matières
- Agenda
- Announcements
- Kahoot
- Design Q’s!
- CS Courses Overview
- Interview Question
- Tips
- Pages
- 27 pages
- Téléversé par
- Uni24h
Foire aux questions
Ce document est-il gratuit ?
Oui. « Misc.onclusion (Discussion 14-END) (Ôn tập cấu trúc dữ liệu) - 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 27 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.
Misc.onclusion (Discussion 14-END) (Ôn tập cấu trúc dữ liệu) - Christine Zhou
Génération de l'aperçu...
Discussion 14: Misc.onclusion Christine Zhou Agenda Announcements Kahoot Design Q’s! CS Courses Overview Interview Question Tips Announcements Last discussion!! Want to talk about finals or anything else? Send me an email! RRR week announcements on Piazza by the end of this weekend! Project 3 Phase 2 due tonight! Checkoffs start today until Friday Project 3 gold points have been extended to Sunday Announcement to come later today Discussion survey: tinyurl.com/cz-disc14-sp19 Kahooooot https://create.kahoot.it/kahoots/my-kahoots Design! Nice! You got an interview with Oski Muskerjobs, CEO of BearbnBeats, the hot new music streaming startup headquartered in Soda Hall. For each of the following scenarios, determine which data structures (doesn’t have to be strictly Java) would give the best performance and what algorithms would be used. Additionally, give the worst-case runtime for any operations listed. BearbnBeats provides users access to millions of songs. Muskerjobs has a list of N (song, album) pairs. Assuming all album names are unique, find the number of songs in each album. Data Structures: HashMap<String, Integer> Algorithm: Iterate through the list of (song, album) pairs, maintaining a mapping from album name to number of songs, incrementing at each occurrence. Runtime: Θ(N) Muskerjobs has a list of all N song names in BearbnBeats’ database, and wants to query if a given Song is in the database. Optimize for both constructing the solution and matching a query. Data Structures: Set<Song> Algorithm: Iterate through the list of songs, adding each song to the set. Runtime: Θ(N) for construction and Θ(1) for query Muskerjobs wants to start developing auto-complete for search on BearbnBeats’ website. When a user types in the first K characters of a query, we want the website to suggest the number of songs that have the same K character prefix. Assume that no songs have a name longer than M and there are N distinct songs. Optimize for bo
Lire le document entier
- Nom du document
- Misc.onclusion (Discussion 14-END) (Ôn tập cấu trúc dữ liệu) - Christine Zhou
- École / Cours
- University of California, Berkeley · Lập trình Java
- Auteur (dans le document)
- Christine Zhou
- Contenu
- Tài liệu này là biên bản thảo luận cuối cùng, cung cấp thông báo, các bài tập thiết kế về cấu trúc dữ liệu và thuật toán cho các tình huống thực tế, và tổng quan về các khóa học CS.
- Table des matières
- Agenda
- Announcements
- Kahoot
- Design Q’s!
- CS Courses Overview
- Interview Question
- Tips
- Pages
- 27 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
Asymptotic Analysis (Discussion 7) (Phân tích tiệm cận) - 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 !