Computer >> บทช่วยสอนคอมพิวเตอร์ >  >> การเขียนโปรแกรม >> การเขียนโปรแกรม
การเขียนโปรแกรม
  1. Deaps (ดีป) ในโครงสร้างข้อมูล

    Deap Definition Deap = Data Structure ที่ Root Node ไม่มี Element/Key Value สร้างตาม Rules: Root Node ว่าง (No Element) Left Subtree = Min Heap Right Subtree = Max Heap Deap Property (Mathematical Correctness) ถ้า Left/Right Subtrees ของ Node ใด Non-empty และ Corresponding Nodes = a (Left), b (

  2. Generic Methods for DEPQs (วิธีทั่วไปสำหรับคิวความสำคัญสองปลาย)

    Dual Heap (โครงสร้างคู่) General Methods: สร้าง DEPQ จาก Single-ended PQ ที่มี remove(node) Operation Dual Structure: Min PQ + Max PQ + Correspondence Pointers (Same Element) Figure A: Dual Heap (7,8,3,6,5) Red Arrows = Correspondence Pointers Note: เก็บ Element ในหนึ่ง Heap พอ (Figure แสดงทั้งค

  3. Dual Priority Queues (คิวความสำคัญสองชุด) ในโครงสร้างข้อมูล

    Dual Structure Method สำหรับ DEPQs General Method: สร้าง Efficient DEPQ จาก Single-ended PQ ที่รองรับ remove(node) Operation Simplest: Dual Structure = Maintain Min PQ + Max PQ ของ DEPQ Elements ทั้งหมด Correspondence Pointers ระหว่าง Nodes ของ Min/Max PQ ที่เป็น Element เดียวกัน Figure D: Dual H

  4. Correspondence-Based Data Structures (โครงสร้างข้อมูลแบบการสอดคล้อง) สำหรับ DEPQs

    Correspondence Techniques สำหรับ DEPQs Total และ Leaf Correspondence = Sophisticated Techniques ครึ่ง Elements ใน Min PQ, อีกครึ่งใน Max PQ Odd Count → 1 Element ใน Buffer (ไม่ใช่ Member ของ PQ ใดๆ) Total Correspondence Element x ใน Min PQ ↔ Distinct Element y ใน Max PQ (x, y) = Corresponding Pair:

  5. Meldable DEPQs (คิวความสำคัญสองปลายแบบผสานได้) ในโครงสร้างข้อมูล

    Meldable DEPQ (MDEPQ) MDEPQ = DEPQ (Double-Ended Priority Queue) ที่เพิ่ม Operation: meld(p, q) = ผสาน DEPQs p และ q → Single DEPQ ที่มี Elements ทั้งหมดของ p และ q Meld = Destructive (p และ q ไม่เหลือเป็น Independent DEPQs) Complexity Results Structure Meld Complexity หมายเหตุ Min-Max Pair

  6. Static Perfect Hashing (การแฮชสมบูรณ์แบบคงที่) ในโครงสร้างข้อมูล

    Perfect Hashing คืออะไร? Perfect Hashing = Hashing Model ที่ Set ของ n Elements เก็บใน Hash Table ขนาด n ได้ และ Lookup ใน Constant Time Fredman, Komlós, Szemerédi (1984) → Nickname: FKS Hashing Static Hashing Static Hashing = Lookup บน Finalized Dictionary Set (Objects Final, ไม่เปลี่ยนแปลง) Appl

  7. Dynamic Perfect Hashing (การแฮชสมบูรณ์แบบไดนามิก) ในโครงสร้างข้อมูล

    Definition Dynamic Perfect Hashing = Programming Method สำหรับ Resolve Collisions ใน Hash Table Data Structure Application Memory-Intensive กว่า Hash Table ทั่วไป แต่เหมาะสำหรับ: Fast Queries, Insertions, Deletions บน Large Element Sets Implementation (Dietzfelbinger et al.) Dynamic Dictionary Alg

  8. Multiple-Choice Hashing (การแฮชแบบหลายตัวเลือก) ในโครงสร้างข้อมูล

    Multiple-Choice Hashing คืออะไร? ใช้ Multiple Hash Functions → แต่ละ Item Map ไป Multiple Buckets → Algorithm Designer มี Freedom เลือกว่า Item จะอยู่ Bucket ไหน → ได้ Allocation ที่ Balanced กว่า Single Hash Function มาก Balls-into-Bins Model (Framework มาตรฐาน) Balls = Demand (Keys, Processes, F

  9. Bloom Filter (บลูมฟิลเตอร์) ในโครงสร้างข้อมูล

    Bloom Filter คืออะไร? Bloom Filter = Data Structure สำหรับตรวจสอบ Element Presence ใน Set แบบ รวดเร็วและประหยัดหน่วยความจำ เป็น Probabilistic Data Structure: บอกว่า Element น่าจะอยู่ หรือ แน่ไม่อยู่ ใน Set โครงสร้างพื้นฐาน: Bit Vector 123456789101112131415 แต่ละ Cell = 1 Bit, ตัวเลข = Index/

  10. Counter Size และ Counter Overflow ใน Bloom Filters

    Counter Size (ขนาดเคาน์เตอร์) ต้องเลือก Counters ใหญ่พอป้องกัน Overflow Poisson Approximation แนะนำ: 4 bits/counter Average Load (k = (ln 2)m/n Counters) = ln 2 ≈ 0.693 P(Counter Load ≥ 16) ≈ e-ln2 (ln 2)16 / 16! ≈ 6.78×10-17 (Extremely Low) 4 bits/counter = Standard สำหรับ Comparisons Counter Ov

  11. Blocked Bloom Filter (บลูมฟิลเตอร์แบบบล็อก) ในโครงสร้างข้อมูล

    Blocked Bloom Filter Overview เลือก Memory Block ก่อน ในแต่ละ Block ใช้ Local Bloom Filter อาจทำให้ Memory Blocks Imbalance Efficient แต่ False Positive Rate (FPR) แย่กว่า Standard ทฤษฎี: Blocked Bloom Filters ควรมี FPR เท่า Standard Bloom Filters ขนาดเดียวกัน ประกอบด้วย Sequence ของ Blocks (b) ขนา

  12. Multi-Way Trees (ต้นไม้หลายทาง) ในโครงสร้างข้อมูล

    Multiway Tree คืออะไร? Multiway Tree 2 ตัว ถ้าสูงสุด m Children → เรียกว่า Multiway Tree of Order m (m-way Tree) Node ใน m-way Tree ประกอบด้วย: m-1 Key Fields + Pointers ไป Children m ตัว Multiway Search Tree of Order m (m-way Search Tree) กำหนด Constraint/Order บน Keys ในแต่ละ Node เพื่อการ Pro

  13. Finger Searching (การค้นหาแบบฟิงเกอร์) ในโครงสร้างข้อมูล

    Finger Search คืออะไร? Finger Search = Extension ของ Search Operation: ให้ Reference (Finger) ไปยัง Element ใน Data Structure พร้อมกับ Query Normal Search Time = f(m) (m = Elements ใน Structure) Finger Search Time = f(d) (d = Distance ระหว่าง Element และ Finger) d = |Rank(a) - Rank(b)| ใน Set ของ m

Total 1490 -คอมพิวเตอร์  FirstPage PreviousPage NextPage LastPage CurrentPage:6/75  20-คอมพิวเตอร์/Page Goto:1 2 3 4 5 6 7 8 9 10 11 12