Important Terminology of Indexing

Duration: 6 min

This video lesson is available to enrolled students.

Return to /learn/COGNIZANT-PREPARATION/dbms/file-organization-indexing/basics-types-of-indexing/asset-important-terminology-of-indexing after enrolling

Inside: a video lesson and guided study material.

Module outline

  1. Communication Round: Vocabulary, Subject Verb Agreement (Verb Noun Agreement), Tenses, Comprehension / Reading Comprehension / Unseen Passages (Critical Reasoning) (Paragraph Questions), Cloze Test (Cloze Passage), Sentence Correction (Error Correction), Sentence Completion (Fill in the blanks), Sentence Re-arrangements (Para Jumbles) (Narrative Sequencing), Direct and Indirect Speech, Active Passive Voice (Voice), Verbal Analogy (Word Based Analogy), Articles, Preposition, Conjunction, Sentence Construction, English Writing Ability, Communication Assessment
  2. Quantitative Aptitude: Ratio and Proportion (Ratios), Divisibility Rules, Data Interpretation, Mixture and Alligation, Permutation and Combination, Logarithm, Number System, HCF LCM, Speed Time and Distance, Percentage, Average, Powers and Exponents (Surds and Indices), Time and Work, Mensuration and Geometry, Age Problems, Pipe and Cistern, Probability, Profit and Loss, Simple Interest and Compound Interest, Algebra
  3. Analytical and Logical Reasoning: Series (Number and Letter Series) (Numerical Relations and Reasoning), Coding Decoding, Data Sufficiency, Non Verbal Reasoning (Spatial Aptitude) (Spatial Reasoning) (Visual Reasoning), Directions (Direction Test), Ranking, Order and Sequence, Deductive and Inductive Reasoning (Logical Deduction and Induction) (Prepositional Reasoning), Selection Decision Table (Decision Making), Logical Sequence Of Words, Puzzle Solving (Puzzles), Syllogisms, Seating Arrangements, Calendar, Clock, Blood Relations, Cubes & Dices, Venn Diagram, Analytical Reasoning (Counting Figures Reasoning)
  4. Cognizant Gaming Aptitude: Gamified / Game Based Aptitude
  5. Java (Cluster 1): Java
  6. ANSI SQL MySQL (Cluster 1,2,3): SQL
  7. HTML, CSS, JavaScript (Cluster 1,3): HTML, CSS, JavaScript
  8. Python (Cluster 2): Python for Placements by Yash Sir
  9. Cloud Fundamentals (Cluster 2): Emerging Tech Trends
  10. C# (Cluster 3): C#
  11. OOPs: Object Oriented Programming (OOPS)
  12. Technical Assessment (Coding): Coding Questions by Yash Sir, C Programming by Yash Sir, Programming in C++, Pseudo Codes
  13. Data Structures: Introduction to DS, Array, Stack, Queue, Linked List, Tree, Graphs, Hashing
  14. DBMS: Basics of DBMS, ER Diagram, Relational Model & Functional Dependencies, Keys & Integrity Constraints, Normalization (1NF - BCNF), Decomposition Properties & 4NF, File Organization & Indexing, Relational Algebra, Relational Calculus, Transaction Management, Concurrency Control, Database Recovery, ORDBMS, Database Security & Authorization, Query Processing & Optimization, Enhanced Data Models, Data Warehousing & Mining, Big Data Systems, NoSQL
  15. Operating Systems: Introduction to OS, Process Management, CPU Scheduling, Process Synchronization, Deadlock, Threads & Process Creation, Memory Management, Virtual Memory, Disc Scheduling, File Management, Windows OS, Linux OS, Security, Distributed Systems, Virtual Machines
  16. Computer Networks: 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, Mobile Technology, Cloud Computing and IoT, Cyber and Info Security
AI summary & chapters

AI Summary

An AI-generated summary of this video lecture.

This lecture introduces database indexing as an auxiliary access structure designed to efficiently retrieve records from files based on specific attributes. The instructor begins by drawing a direct analogy between database indexes and the index found in books, where terms are listed alphabetically with corresponding page numbers for quick lookup. Visual aids highlight this mapping process using red annotations and arrows to show how a search term translates to a specific location. The core definition establishes that an index provides a secondary access path without altering the physical placement of records in the main file. Structurally, an index file is significantly smaller than the main file because it contains only two columns: a key (the attribute used for searching) and a block pointer (the base address of the data block). The lecture clarifies that indexes can be created on any field of a relation, whether it is a primary key or a non-key attribute. Furthermore, multiple index files can be designed for a single main file to optimize access based on different attributes. A key property emphasized is that index files are always ordered, which enables the use of binary search algorithms for faster retrieval times. However, this performance gain comes with a trade-off: the space taken by the index file represents an overhead. The segment concludes by distinguishing between sparse and dense indexes, noting that a sparse index contains fewer entries than the total number of records in the main file.

Chapters

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

    The instructor introduces the concept of indexes as an auxiliary access structure used to efficiently retrieve records from database files based on specific attributes. The visual aid compares this database technique to the index found in books, showing how terms are listed with corresponding page numbers for quick lookup. Red annotations highlight specific entries and arrows to illustrate the mapping process from a term to its location.

  2. 2:00 – 5:00 02:00-05:00

    The lecture explains that an index file is significantly smaller than the main file because it contains only two columns: a key and a block pointer. It clarifies that indexes can be created on any field of a relation, whether it is a primary key or a non-key attribute. Furthermore, the instructor notes that multiple index files can be designed for a single main file based on different attributes. The text on screen explicitly states 'Index typically provides secondary access path without affecting the physical placement of records in the main file' and defines the two columns as 'key (attribute in which searching is done)' and 'block pointer (base address of the block of main file)'. The instructor underlines key terms for emphasis and highlights structural differences between files.

  3. 5:00 – 6:10 05:00-06:10

    The video segment explains the concept of a sparse index, defining it as an index where entries are created only for some records in the main file. It highlights that the number of index entries is less than the total number of records in the main file. The instructor also clarifies that dense and sparse indexing are not strictly complementary, noting a record can be both. On-screen text defines 'SPARSE INDEX' and states 'No. of index entries in the index file < No. of records in the main file.' The instructor writes numerical examples such as '300' versus '30,000' to emphasize the inequality between index and file sizes.

The lecture systematically builds an understanding of database indexing by first establishing its purpose as a secondary access path that does not disturb the physical order of data. The analogy to book indexes serves as a foundational concept, making the abstract idea of block pointers and keys more tangible. The structural definition is precise: an index file consists solely of a key attribute and a block pointer, making it much smaller than the main data file. This size efficiency is crucial because while indexes improve access speed through ordered storage and binary search capabilities, they inherently consume additional disk space. The progression from general definition to specific structural components (key and pointer) allows students to grasp the trade-off between performance and storage overhead. The final distinction between sparse and dense indexes introduces a nuance in implementation, where the number of index entries may be fewer than the total records. This distinction is vital for understanding optimization strategies in database design, as sparse indexes are more space-efficient but may require linear search within blocks if the main file is not ordered by the index key.

Loading lesson…