Gate 2010

Duration: 3 min

This video lesson is available to enrolled students.

Return to /learn/LTI-MINDTREE-PREPARATION/data-structures/hashing/open-addressing-probing/asset-gate-2010-4815 after enrolling

Inside: a video lesson and guided study material.

Module outline

  1. English Comprehension/Verbal Ability: Comprehension / Reading Comprehension / Unseen Passages (Critical Reasoning) (Paragraph Questions), Vocabulary, Sentence Correction (Error Correction), Sentence Completion (Fill in the blanks), Sentence Re-arrangements (Para Jumbles) (Narrative Sequencing), Subject Verb Agreement (Verb Noun Agreement), Tenses, Verb, Articles, Preposition, Conjunction, Pronoun, Noun, Adjectives, Adverb, Modals, Cloze Test (Cloze Passage), Active Passive Voice (Voice), Direct and Indirect Speech, Sentence Construction
  2. Logical Ability: Coding Decoding, Directions (Direction Test), Analogy, Inequality, Data Sufficiency, Series (Number and Letter Series) (Numerical Relations and Reasoning), Syllogisms, Seating Arrangements, Puzzle Solving (Puzzles), Blood Relations, Deductive and Inductive Reasoning (Logical Deduction and Induction) (Prepositional Reasoning), Ranking, Order and Sequence, Logical Sequence Of Words, Data Arrangement, Venn Diagram, Calendar, Clock
  3. Quantitative Ability: Logarithm, Permutation and Combination, Probability, Profit and Loss, Speed Time and Distance, Mixture and Alligation, Partnership, Simple Interest and Compound Interest, Percentage, Ratio and Proportion (Ratios), Average, Time and Work, Pipe and Cistern, Number System, Divisibility Rules, HCF LCM, Algebra, Powers and Exponents (Surds and Indices), Mensuration and Geometry, Age Problems, Data Interpretation, Sequence and Series (Series)
  4. Basic Analytical Ability: Non Verbal Reasoning (Spatial Aptitude) (Spatial Reasoning) (Visual Reasoning), Analytical Reasoning (Counting Figures Reasoning), Cubes & Dices, Selection Decision Table (Decision Making)
  5. Computer Programming: Pseudo Codes, Coding Questions by Yash Sir, C Programming by Yash Sir, Programming in C++, Java, Python for Placements by Yash Sir
  6. DBMS (Computer Science): Basics of DBMS, ER Diagram, Relational Model & Functional Dependencies, Keys & Integrity Constraints, Normalization (1NF - BCNF), Transaction Management, Concurrency Control, Database Security & Authorization
  7. SQL (Computer Science): SQL
  8. OS (Computer Science): Introduction to OS, Process Management, CPU Scheduling, Deadlock, Process Synchronization, Threads & Process Creation, Memory Management, Virtual Memory, File Management
  9. Computer Networks (Computer Science): Introduction to CN, Data Communication, DLL: Access Control, DLL: Flow Control, DLL: Error Control, DLL: Framing, Data Link Layer - Ethernet, Net Layer: IPv4 & Proto, Net Layer: IP Addressing, Net Layer:Routing Protocol, Transport Layer Services, TL: Congestion & UDP, Application Layer, Hardware basics, Network Security
  10. Data Structures (Computer Science): Introduction to DS, Array, Stack, Queue, Linked List, Tree, Graphs, Hashing
  11. OOPs (Computer Science): Object Oriented Programming (OOPS)
  12. Software Engineering (Computer Science): Fundamentals of Software Engineering, Software Requirements and Quality Assurance, Software Design, Estimation and Metrics, Software Testing, Software Maintenance and Configuration Management
  13. SVAR Conversational - Spoken English: Communication Assessment
  14. HR Interview: MR & HR Interview Preparation
AI summary & chapters

AI Summary

An AI-generated summary of this video lecture.

The video presents a solution to a GATE 2010 computer science problem involving hash tables. The problem specifies a hash table of length 10 using open addressing with linear probing and the hash function h(k) = k mod 10. The goal is to determine the insertion order of six keys given the final table state. The instructor begins by listing the provided options and analyzing the hash values for each key present in the table: 42, 23, 34, 52, 46, and 33. He calculates their initial positions: 42 and 52 map to index 2, 23 and 33 map to index 3, 34 maps to index 4, and 46 maps to index 6. He observes that 52 and 33 are displaced from their primary hash positions because indices 2 and 3 are occupied by 42 and 23 respectively. This observation is crucial for eliminating incorrect options.

Chapters

  1. 0:00 – 2:00 00:00-02:00

    The instructor reads the problem statement and displays the hash table with values at indices 2, 3, 4, 5, 6, and 7. He writes down the hash function h(k) = k mod 10 and calculates the primary hash index for each key: 42->2, 23->3, 34->4, 52->2, 46->6, 33->3. He notes that 52 and 33 must have probed further because their target slots were occupied. He starts evaluating the options, specifically looking at the order of insertion to see if it results in the observed displacements. He marks option (A) as incorrect because inserting 52 before 23 would place 52 at index 3, contradicting the table.

  2. 2:00 – 2:51 02:00-02:51

    The instructor focuses on verifying option (C): 46, 34, 42, 23, 52, 33. He simulates the insertion process step-by-step. First, 46 goes to index 6. Then 34 goes to index 4. Next, 42 goes to index 2. Then 23 goes to index 3. When 52 is inserted, it hashes to 2 (occupied by 42), probes 3 (occupied by 23), probes 4 (occupied by 34), and lands at index 5. Finally, 33 hashes to 3 (occupied by 23), probes 4, 5, 6 (occupied by 46), and lands at index 7. This sequence perfectly matches the final table configuration shown in the problem. He concludes that option (C) is the correct answer.

The lesson effectively teaches how to validate insertion sequences in hash tables with linear probing. By calculating initial hash positions and simulating the probing sequence for each candidate option, one can determine the valid order. The key takeaway is that displaced elements must find the first available slot after their primary hash index, skipping over previously inserted elements.

Loading lesson…