Weighted Quick Union và HashMaps (Discussion 14) - Christine Zhou
Tài liệu thảo luận số 14, bao gồm thông báo, bài tập về Weighted Quick Union và HashMaps, cùng tổng quan các khóa học CS tại UC Berkeley.
プレビューを生成中...
Discussion 14: Misc.onclusion Christine Zhou Agenda Announcements Worksheet CS Courses Overview Optional: Interview Question Tips Announcements Cookies!! HW8 due Friday 12/1 Proj3 due Wednesday 12/6 Tentative plan for dead week: No discussion OH as normal Lab will be converted to topic based review Design! Weighted Quick Union with Path Compression Used to represent connectivity between items Each item belongs to its own set, “union” the items together by connecting the sets together Sets will have a tree like structure Optimizations: Union by weight: connect the root of the “lighter” set to the root of the “heavier” set (determined by number of nodes in the set) Path compression: when you “find” a node, compress the node and the path to the node by connecting it to the root of the set 61BL Lab about Disjoint Sets HashMaps Use an array to represent your data For each key-value pair, assign each key a “hash code” mod (%) the hash code by the length of the array (this gives you a number between 0 and array.length - 1), use this as the index! N = num elements, M = num buckets, C = some constant If N/M > C, then increase M! N/M is called the load factor If we have multiple elements that go to same place in the array, usually we will keep track of a list Be careful about negative numbers when modding! This is called external chaining What is the runtime of .contains and .insert? Course Overview (Personal experiences) CS61C: Machine Structures C, assembly language Learn about how computers work! Caching, MapReduce, parallelism CS170: Algorithms CS70: Discrete Math/Probability Proofs for things we’ve seen so far Problem set every week Stable marriage, modular arithmetic, graph theory, etc. CS186: Databases Learn SQL and how databases keep track of all your data, Java “Chill”, though exam was tough this time around…, some projects Guest speakers from the industry Learn to analyze runtimes,
… Tải file gốc để đọc toàn bộ tài liệu.
- ドキュメント名
- Weighted Quick Union và HashMaps (Discussion 14) - Christine Zhou
- 学校 / コース
- University of California, Berkeley · Lập trình Java
- 内容
- Buổi thảo luận cuối cùng này cung cấp thông báo về bài tập, dự án và kế hoạch tuần cuối. Tài liệu cũng giới thiệu chi tiết về các khóa học Khoa học Máy tính khác nhau và các khái niệm kỹ thuật như Weighted Quick Union và HashMaps.
- 目次
- Agenda
- Announcements
- Design!
- Weighted Quick Union with Path Compression
- HashMaps
- Course Overview (Personal experiences)
- Course Overviews (16x)
- Course Overviews (16x) cont.
- Course Overview (17x)
- Course Overview (18x)
- Course Overview (other)
- Doc.pages
- 18 ページ
- アップロード者
- Giang Le
よくある質問
Tài liệu này có miễn phí không?
Có. “Weighted Quick Union và HashMaps (Discussion 14) - Christine Zhou” miễn phí — bạn chỉ cần đăng nhập rồi bấm Tải xuống để lấy file gốc.
Tài liệu dài bao nhiêu trang?
Tài liệu gồm 18 trang, thuộc môn Lập trình Java. Bạn có thể xem trước online trước khi tải.
Tôi có thể xem trước trước khi tải không?
Có. Bạn xem trước tài liệu ngay trên trang này bằng trình đọc online, rồi quyết định tải về.

コメント (0)
まだコメントはありません。最初のコメントを書きましょう!