Short Trick to Find Rank of a Word With Repetitions

Duration: 9 min

This video lesson is available to enrolled students.

Return to /learn/ZERO-TO-HERO/aptitude/permutation-and-combination/special-applied-problems/asset-short-trick-to-find-rank-of-a-word-with-repetitions after enrolling

Inside: a video lesson and guided study material.

Module outline

  1. Database Management System: Basics of DBMS, ER Diagram, Relational Model & Functional Dependencies, Keys & Integrity Constraints, Normalization (1NF - BCNF), Decomposition Properties & 4NF, File Organization & Indexing, Relational Algebra, SQL, Relational Calculus, Transaction Management, Concurrency Control
  2. Discrete Mathematics: Set Theory, Relations, Functions, Graph Theory, Group Theory, Propositional and Predicate Logic
  3. Digital Electronics: Digital Systems & Boolean Basics, Logic Gates & Hardware, Boolean Expression, Boolean Minimization, Combinational Circuit, Sequential Circuits, Number System, Number Representation
  4. Computer Architecture: Basics of COA, Floating Point Rep, Cache Memory Organization, Input Output Organisation, Pipelining, Instr Formats & Modes, Control Unit Design
  5. Operating System: Introduction to OS, Process Management, CPU Scheduling, Process Synchronization, Deadlock, Virtual Memory, Disc Scheduling, File Management, Memory Management, Threads & Process Creation
  6. Computer Networks: Introduction to CN, 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, Network Security, Hardware Basics
  7. Data Structures: Introduction to DS, Array, Stack, Queue, Linked List, Tree, Graphs, Hashing
  8. Algorithms: Algorithm Analysis, Sorting Algorithms, Greedy Algorithms, Dynamic Programming, Minimum Spanning Trees, Shortest Path Algos, Time Complexity Analysis
  9. Theory Of Computation: Introduction to TOC, Deterministic FA (DFA), Non-Deterministic FA, Regular Expressions, Grammar, Regular Language Properties, Moore & Mealy Machines, Pushdown Automata & CFG, Turing Machines, Complexity Theory
  10. Compiler Design: Intro to Compilers, Lexical Analysis, Grammar & CFG, Syntax Analysis: Top-Down, Syntax Analysis: Bottom-Up, Semantic Analysis & SDT, Intermediate Code Gen, Code Optimization
  11. C language: C Fundamentals, Control Flow, Functions, Arrays & Pointers, Storage Classes, Structures & Enums
  12. Software Engineering: Fundamentals of Software Engineering, Software Requirements and Quality Assurance, Software Design, Estimation and Metrics, Software Testing, Software Maintenance and Configuration Management
  13. Emerging Trends & AI: Emerging Tech Trends, Artificial Intelligence, Cloud Computing
  14. Computer Graphics: Basics of Computer Graphics, 2-D Geometrical Transforms and Viewing
  15. Aptitude: Percentage, Ratio and Proportion (Ratios), Logarithm, HCF LCM, Divisibility Rules, Average, Sequence and Series (Series), Number System, Powers and Exponents (Surds and Indices), Algebra, Permutation and Combination, Probability, Profit and Loss, Simple Interest and Compound Interest, Time and Work, Pipe and Cistern, Speed Time and Distance, Mixture and Alligation, Mensuration and Geometry, Mental Ability, Age Problems, Partnership, Statistics, Data Interpretation, Arithmetic, Speed Mathematics and Basic Mathematics, TCS NQT Advanced Quantitative Ability, Gamified / Game Based Aptitude, Linear Algebra, Trigonometry
  16. Reasoning: Non Verbal Reasoning (Spatial Aptitude) (Spatial Reasoning) (Visual Reasoning), Series (Number and Letter Series) (Numerical Relations and Reasoning), Coding Decoding, Data Sufficiency, Syllogisms, Deductive and Inductive Reasoning (Logical Deduction and Induction) (Prepositional Reasoning), Seating Arrangements, Blood Relations, Directions (Direction Test), Analytical Reasoning (Counting Figures Reasoning), Puzzle Solving (Puzzles), Calendar, Clock, Cubes & Dices, Selection Decision Table (Decision Making), Logical Sequence Of Words, Crypt Arithmetic, Venn Diagram, Data Arrangement, Inequality, Analogy, Ranking, Order and Sequence, TCS NQT Advanced Reasoning Ability
  17. English (Verbal Ability): Vocabulary, Noun, Pronoun, Adjectives, Preposition, Articles, Direct and Indirect Speech, Tenses, Conjunction, Subject Verb Agreement (Verb Noun Agreement), Modals, Sentence Re-arrangements (Para Jumbles) (Narrative Sequencing), Sentence Correction (Error Correction), Sentence Completion (Fill in the blanks), Comprehension / Reading Comprehension / Unseen Passages (Critical Reasoning) (Paragraph Questions), Cloze Test (Cloze Passage), Verbal Analogy (Word Based Analogy), Sentence Construction, Active Passive Voice (Voice), Determiner, Facts, Inference and Judgements, Adverb, Interjection, Verb, English Writing Ability
  18. Engineering Mathematics: Calculus, Vectors
  19. GATE Live Class Recordings 2026: GATE 2026 Live Class
AI summary & chapters

AI Summary

An AI-generated summary of this video lecture.

This educational video, presented by Yash Jain from Knowledge Gate Educator, is a tutorial on finding the rank of a word in a dictionary, specifically focusing on words with repeated letters. The video begins with an introduction to the topic, using a title slide that reads "Rank of a Word (With Repetition)". The core of the lesson is a step-by-step demonstration of a method to calculate the rank. The instructor first analyzes the word "SECRET", which has 6 letters with the letter 'E' repeated twice. He explains that the rank is found by summing the number of words that can be formed with letters that come before the current letter in the alphabet, for each position in the word. For "SECRET", he calculates the number of words starting with letters A, B, C, D, and F (all before 'S') and then proceeds to the next letter 'E', calculating words starting with 'SE' and so on. The method involves using permutations of the remaining letters, adjusting for repetitions. The video then applies the same method to the word "GOOGLE", which has 6 letters with 'O' repeated three times and 'G' repeated twice. The instructor shows the calculation for each letter position, summing the results to find the final rank. The video concludes with a list of practice questions for the viewer, including words like "BANANA", "ZENITH", and "MISSISSIPPI".

Chapters

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

    The video opens with a title slide for a lesson on "Rank of a Word (With Repetition)". The instructor, Yash Jain, introduces the topic. The first example presented is the word "SECRET". The instructor begins the calculation by identifying the letters in the word and their frequencies: S, E, C, R, E, T, with E appearing twice. He explains that the rank is determined by counting all the words that would come before "SECRET" in a dictionary. He starts with the first letter, 'S', and calculates the number of words that can be formed with letters that come before 'S' in the alphabet (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R). For each of these letters, he calculates the number of permutations of the remaining 5 letters, which is 5! (120). He then identifies that the letter 'E' is the next letter in the word, and he will now consider words starting with 'S' and the next letter being one that comes before 'E'. The on-screen text clearly shows the word "SECRET" and the initial calculation for the first letter.

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

    The instructor continues the calculation for the word "SECRET". After establishing that 5 letters (A, B, C, D, F) come before 'S', he calculates the number of words starting with these letters as 5 * 5! = 600. He then moves to the second letter, 'E'. He identifies that the letter 'C' comes before 'E' and calculates the number of words starting with 'SC'. The remaining letters are E, R, E, T, which can be arranged in 4! / 2! = 12 ways. He then moves to the third letter, 'C'. He identifies that no letters come before 'C' in the remaining set (C, R, E, E, T), so the count for this position is 0. He then moves to the fourth letter, 'R'. He identifies that the letter 'E' comes before 'R' and calculates the number of words starting with 'SEC' and the next letter being 'E'. The remaining letters are R, E, T, which can be arranged in 3! = 6 ways. He then moves to the fifth letter, 'E'. He identifies that the letter 'E' is the same as the current letter, so he moves to the next position. The on-screen text shows the step-by-step calculation, including the numbers 5, 2, 1, 4, 2, 6, and the formula 5! / 2! for the first calculation.

  3. 5:00 – 8:47 05:00-08:47

    The instructor completes the calculation for "SECRET". He moves to the fifth letter, 'E', and identifies that the letter 'E' is the same as the current letter, so he moves to the next position. He then moves to the sixth letter, 'T'. He identifies that the letter 'E' comes before 'T' and calculates the number of words starting with 'SECRE' and the next letter being 'E'. The remaining letter is T, so there is only 1 way. He sums all the calculated values: 600 (from S) + 12 (from SC) + 0 (from SEC) + 6 (from SECR) + 0 (from SECRE) + 1 (from SECRET) = 619. He then adds 1 to get the final rank, which is 620. He then moves to the next example, "GOOGLE". He identifies the letters and their frequencies: G, O, O, G, L, E, with O repeated three times and G repeated twice. He begins the calculation for the first letter, 'G'. He identifies that the letter 'E' comes before 'G' and calculates the number of words starting with 'E'. The remaining letters are G, O, O, G, L, which can be arranged in 5! / (2! * 2!) = 30 ways. He then moves to the second letter, 'O'. He identifies that the letter 'G' comes before 'O' and calculates the number of words starting with 'GG'. The remaining letters are O, O, L, E, which can be arranged in 4! / 2! = 12 ways. He then moves to the third letter, 'O'. He identifies that the letter 'G' comes before 'O' and calculates the number of words starting with 'GO'. The remaining letters are O, G, L, E, which can be arranged in 4! = 24 ways. He then moves to the fourth letter, 'G'. He identifies that the letter 'E' comes before 'G' and calculates the number of words starting with 'GOO'. The remaining letters are G, L, E, which can be arranged in 3! = 6 ways. He then moves to the fifth letter, 'L'. He identifies that the letter 'E' comes before 'L' and calculates the number of words starting with 'GOOG'. The remaining letters are L, E, which can be arranged in 2! = 2 ways. He then moves to the sixth letter, 'E'. He identifies that the letter 'E' is the same as the current letter, so he moves to the next position. He then adds all the calculated values: 30 + 12 + 24 + 6 + 2 + 0 = 74. He then adds 1 to get the final rank, which is 75. The video ends with a list of practice questions.

The video provides a clear, step-by-step method for calculating the rank of a word with repeated letters in a dictionary. The core concept is to break down the problem position by position. For each letter in the target word, the instructor calculates the number of valid permutations of the remaining letters that can be formed using letters that are alphabetically before the current letter. This count is then summed for all positions. The method explicitly accounts for repeated letters by dividing the total permutations by the factorial of the count of each repeated letter. The video effectively demonstrates this process with two detailed examples, "SECRET" and "GOOGLE", and concludes by providing a list of practice problems to reinforce the concept.

Loading lesson…