DRDO Scientist B (Computer Science & Engineering) Interview Master Guide
Comprehensive RAC panel preparation covering OS kernel internals, RTOS scheduling, cryptography, cyber warfare, and algorithms.
B.Tech / M.Tech in CS / IT / Software Systems facing whiteboard derivations, algorithm time complexities, and secure embedded programming challenges.
- Mastery of core theoretical computer science (OS, DBMS, Compilers, CN, Algorithms).
- Ability to write clean pseudo-code and prove mathematical time complexities on a whiteboard.
- In-depth understanding of your B.Tech/M.Tech capstone project implementation.
- Awareness of military computing domains: RTOS, Cyber Defense, and AI at the Tactical Edge.
Targeted Interview Questions & Framework Answers
Derive the time complexity of Dijkstra’s Shortest Path Algorithm using both an Adjacency Matrix and a Binary Min-Heap.
For a graph G=(V,E): 1) Using an Adjacency Matrix: Finding the minimum distance unvisited vertex takes O(V) time, performed V times = O(V^2). Edge relaxations across matrix take O(V) per vertex = O(V^2). Total Time = O(V^2), optimal for dense graphs where E ~ V^2. 2) Using an Adjacency List with a Binary Min-Heap: Extract-Min takes O(log V) time, done V times = O(V log V). Decrease-Key operation is invoked at most E times during edge relaxation, each taking O(log V) = O(E log V). Total Time = O((V + E) log V), superior for sparse graphs where E << V^2.
- •Matrix implementation is O(V^2), ideal for dense graphs
- •Min-Heap implementation is O((V + E) log V), optimal for sparse networks
- •Fibonacci Heap further optimizes Decrease-Key to amortized O(1), achieving O(E + V log V)
What is Page Replacement in Virtual Memory, and how does the Second Chance (Clock) algorithm approximate Least Recently Used (LRU)?
When a page fault occurs and all physical memory frames are occupied, the OS must select a victim page to swap out to disk. True LRU requires hardware timestamps or stack manipulation on every memory access, causing high overhead. The Second Chance (Clock) algorithm approximates LRU using a single 'Reference Bit' per page: Pages are arranged in a circular buffer with a clock pointer. When searching for a victim: If the current page's reference bit is 1, the OS clears it to 0 (giving it a second chance) and advances the pointer. If the reference bit is already 0, that page is selected as the victim immediately.
- •Approximates LRU with low O(1) hardware overhead using a reference bit
- •Gives referenced pages a second chance by resetting bit from 1 to 0
- •Avoids Belady’s anomaly associated with pure FIFO replacement