CS Fundamentals

200 articles in this topic

Ambiguous Grammars, Precedence and Associativity for GATE: Two-Tree Proofs and Grammar Rewrites

Proving a grammar ambiguous takes one witness string and two parse trees. Removing the ambiguity takes precedence layers plus a chosen recursion direction.

Updated 21 Jul 20265 min readTheory of Computation

Booth's Algorithm for GATE: Signed Multiplication Traced Step by Step

Trace Booth multiplication through A, Q and Q-1, preserve the sign during every shift, and count additions and subtractions from bit transitions.

Updated 20 Jul 20265 min readComputer Organization & Architecture

Flip-Flop Conversion for GATE: Excitation Tables and the SR, JK, D, T Conversion Recipe, Solved

Convert one flip-flop into another with the target transition, the available device's excitation table and a K-map. The solved JK-to-T case shows every row.

Updated 20 Jul 20266 min read57 viewsDigital Logic

Pointers in C for GATE: Memory Diagrams and Output Traces

Draw pointers as addresses in boxes, then trace double pointers, arrays, swaps and precedence without guessing. The worked outputs show the method GATE rewards.

Updated 20 Jul 20265 min readC Programming & Data Structures

TCP Congestion Control for GATE

Track cwnd at one fixed point in every round, apply the correct growth rule, and reset it on the stated loss signal. A worked ten-RTT table follows the sawtooth.

Updated 20 Jul 20266 min readComputer Networks

LL(1) Parsing Table Construction for GATE

Build an LL(1) table cell by cell, test it for conflicts, and see how left recursion and common prefixes break predictive parsing.

Updated 20 Jul 20266 min readCompiler Design

Linear Algebra for GATE CS: Rank, Consistency and Eigenvalues

Reduce matrices cleanly, classify Ax=b by ranks, and turn eigenvalue properties into fast calculations. Each result is checked against an independent property.

Updated 29 Jul 20265 min readEngineering Mathematics

fork() Questions in GATE

Trace three common fork() patterns without the off-by-one error, then handle return values, loops, printed output, and inherited buffers.

Updated 20 Jul 20265 min read67 viewsOperating Systems

ER Model to Relational Mapping for GATE: Minimum Number of Tables Questions Solved

Count the minimum relations from cardinality and participation, then check the special rules for weak entities, relationship attributes, and multivalued attributes.

Updated 20 Jul 20266 min read79 viewsDBMS

DFA Minimization for GATE

Remove unreachable states, split final from non-final states, and refine until every transition signature is stable. A complete six-state example shows each split.

Updated 29 Jul 20265 min readTheory of Computation

SQL Queries for Placement Interviews: Second Highest Salary, Joins and GROUP BY Step by Step

SQL queries for placement interviews built step by step on one schema: second highest salary three approaches, joins with results shown, GROUP BY and HAVING.

Updated 19 Jul 20267 min readDBMS

Operating System Interview Questions for Freshers: Top 50 with Answers

50 operating system interview questions for freshers, every one answered and grouped into the follow-up chains interviewers walk: process vs thread, context-switch cost, scheduling trade-offs, synchronization to deadlock, paging to thrashing, plus file-system quick-fires and a two-week prep plan.

19 Jul 202617 min readOperating Systems