Practice Question-2
Duration: 8 min
This video lesson is available to enrolled students.
Inside: a video lesson and guided study material.
Module outline
- HPSC Interview Preparation: Interview Preparation
- Python Language: Introduction to Python Tokens, Variables, Data Types, I/O Operators & Expressions Control Flow & Looping Collections & Strings Functions & Modules File Handling & Data Analysis DSA using Python
- Data Structure & Algorithms: Introduction to DS Array Stack Queue Linked List Tree Graphs Hashing Algorithm Analysis Sorting Algorithms Minimum Spanning Trees Time Complexity Analysis Graph Theory Shortest Path Algos
- Computer Networks: Introduction to CN Data Communication DLL: Access Control DLL: Flow Control Data Link Layer - Ethernet Net Layer: IPv4 & Proto Net Layer: IP Addressing Transport Layer Services TL: Congestion & UDP Application Layer Hardware basics Network Security
- Computer System & Organisation: Basics of COA Cache Memory Organization Input Output Organisation Pipelining Instr Formats & Modes Control Unit Design Programming the Basic Computer
- Database Management System: Basics of DBMS ER Diagram Relational Model & Functional Dependencies Keys & Integrity Constraints Normalization (1NF - BCNF) Decomposition Properties & 4NF SQL File Organization & Indexing Transaction Management Concurrency Control
- Operating Systems: Introduction to OS Process Management CPU Scheduling Process Synchronization Deadlock Threads & Process Creation Memory Management Virtual Memory Disc Scheduling
- Digital Logic & Circuits: Digital Systems & Boolean Basics Logic Gates & Hardware Boolean Expression Boolean Minimization Combinational Circuit Sequential Circuits Number System Number Representation
- Theory Of Computation: Introduction to TOC Deterministic FA (DFA) Non-Deterministic FA Regular Expressions Grammar Regular Language Properties Pushdown Automata & CFG Turing Machines
- 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 Run Time Environment
- Software Engineering: Fundamentals of Software Engineering Software Requirements and Quality Assurance Software Design, Estimation and Metrics Software Testing Software Maintenance and Configuration Management Data Warehousing & Mining
- Introduction to Emerging Trends: Emerging Trends and AI Sets, Relations, Functions and Discrete Mathematics Trade, Marketing and Consumer Protection Internet of Things Cloud Computing अनुक्रम, श्रेणी और संयोजन आव्यूह और रैखिक बीजगणित वास्तविक और सम्मिश्र विश्लेषण Mathematics Pedagogy International Economics Electrostatics and Current Electricity Optics and Photonics Folk Art and Crafts Analysis of Financial Statements Business Foundations and Entrepreneurship Number Systems and Number Theory Solid State Physics and Electronics Number System Multimedia Network Access Technologies
- Digital Society & Cyber Law: Society, Law & Ethics Teaching Aids and Educational Technology Digital India and Online Services Culture, Socialisation and Social Control Communication Contexts and Media Public Administration and Governance MS Office Applications Language Design Web Publishing & Hosting C Fundamentals Internet Fundamentals
- HPSC PGT Previous Year Paper:
- HPSC Assistant Professor Previous Year Paper:
- Live Sessions: HPSC Live Sessions EMRS TGT/PGT Live Class
- Full Mock Test:
- HPSC PGT - MOCK Test Series:
AI summary & chapters
AI Summary
An AI-generated summary of this video lecture.
The video presents a lecture on calculating the minimum number of bits required for a microprogram control unit using two different encoding schemes: horizontal and vertical. The problem is introduced with a table showing 10 mutually exclusive groups (G1 to G10) and the number of control signals in each group. The instructor first explains the horizontal encoding method, which requires one bit for each signal, leading to a total of 74 bits. He then explains the vertical encoding method, which uses a binary code to represent each group, requiring log2 of the maximum number of signals in any group. For the given data, the maximum is 14, so log2(14) is approximately 3.8, which rounds up to 4 bits. The total number of bits for vertical encoding is the sum of the bits for each group, calculated as 2+4+3+4+4+4+4+4+2+2, which equals 31 bits. The video concludes by comparing the two methods, showing that vertical encoding is more efficient.
Chapters
0:00 – 2:00 00:00-02:00
The video begins by presenting a problem about a microprogram control unit with 10 mutually exclusive groups of control signals. A table is displayed showing the number of signals in each group: G1=3, G2=12, G3=7, G4=5, G5=11, G6=11, G7=11, G8=14, G9=3, G10=3. The instructor introduces the concept of control signals and the need to determine the minimum number of bits required for encoding them, setting up the problem for two different encoding schemes.
2:00 – 5:00 02:00-05:00
The instructor explains the horizontal encoding method. He draws a diagram showing a control signal 'S' branching into 'horizontal' and 'vertical' paths. He defines horizontal encoding as requiring one bit for each control signal. He then calculates the total number of bits for horizontal encoding by summing the signals in all groups: 3+12+7+5+11+11+11+14+3+3, which equals 74 bits. He writes the formula 'horizontal = 74 bits' on the board.
5:00 – 8:06 05:00-08:06
The instructor explains the vertical encoding method. He writes the formula 'vertical = log2(14) = 4 bits' for the number of bits needed to represent the largest group (G8 with 14 signals). He then calculates the total number of bits for vertical encoding by summing the bits for each group: log2(3) + log2(12) + log2(7) + log2(5) + log2(11) + log2(11) + log2(11) + log2(14) + log2(3) + log2(3). He approximates these values as 2+4+3+4+4+4+4+4+2+2, which sums to 31 bits. He concludes that vertical encoding is more efficient than horizontal encoding.
The video systematically compares two encoding methods for a microprogram control unit. It starts by defining the problem with a table of control signals. It then demonstrates the horizontal encoding method, which requires a bit for every signal, resulting in a total of 74 bits. Next, it explains the vertical encoding method, which uses a binary code to represent each group, requiring log2 of the maximum signals in a group. The total for vertical encoding is calculated by summing the bits for each group, resulting in 31 bits. The synthesis shows that vertical encoding is significantly more efficient, requiring only 31 bits compared to 74 bits for horizontal encoding.

