CS Fundamentals

476 articles in this topic

Smart Pointers in C++: unique_ptr, shared_ptr and weak_ptr with Worked Examples

Learn who owns a C++ object, when it is destroyed, and how to choose among unique_ptr, shared_ptr, weak_ptr and a borrowed raw pointer.

Updated 1 Oct 20265 min read79 viewsC Programming & Data Structures

Data Link Layer Framing Explained: Byte Stuffing, Bit Stuffing and a Cross-Concept Numerical

Frame one four-byte payload in two ways, decode it, and then reuse the verified frame sizes in link-load and Stop-and-Wait calculations.

Updated 1 Oct 20266 min read67 viewsComputer Networks

Ambiguous Grammars and Inherent Ambiguity: Worked CFG Examples for GATE

Learn what two derivations really prove, resolve expression ambiguity with precedence, and trace the classic inherently ambiguous language through aabbcc.

Updated 1 Oct 20266 min read62 viewsCompiler Design

Bipartite, Cycle, Regular and Complement Graphs: Tests, Formulas and a C6 Worked Example

Learn a dependable order for classifying simple graphs, then apply it to C6 and list, count and test every edge in its complement.

Updated 29 Sep 20266 min readEngineering Mathematics

Operating System Scenarios: Solve Scheduling, Concurrency, and Page Replacement

Learn one state-trace method for three common OS problem families, then apply it to complete Round Robin, concurrency, FIFO, and LRU examples.

Updated 29 Sep 20265 min readOperating Systems

Set Operations and Cartesian Product in Relational Algebra: Worked Examples and Exam Traps

Learn when relational set operations are legal, calculate exact union and difference results, enumerate a Cartesian product, and trace how a join filters it.

Updated 29 Sep 20266 min readDBMS

Decision Properties in Theory of Computation: DFA Tests, CFG Boundaries and Turing Machine Undecidability

Learn an algorithm-first way to classify membership, emptiness, finiteness, inclusion, equivalence and universality for DFAs, CFGs and Turing machines.

Updated 29 Sep 20266 min readTheory of Computation

Multiprocessor Classification: Flynn Taxonomy, Memory Models and Exam-Style Worked Examples

Learn how to choose the right multiprocessor classification axis, then solve a four-lane SIMD trace and a NUMA average-access-time problem step by step.

Updated 27 Sep 20266 min readComputer Organization & Architecture

Boolean Function Counts: Formulas, Worked Examples and Exam Traps

Build the master Boolean-function formula from output choices, then learn how common restrictions change the count through combinations, pairing and inclusion-exclusion.

Updated 27 Sep 20266 min readDigital Logic

Pointers in C: Addresses, Arrays and Functions with Worked Examples

Build a practical pointer model with runnable C programs for dereferencing, arrays, swapping, dynamic memory and common tracing questions.

Updated 26 Sep 20265 min readC Programming & Data Structures

Byte Stuffing in Computer Networks: Worked Framing Example and Exam Traps

Learn a precise byte-stuffing convention, trace a payload containing both FLAG and ESC, reverse it safely, and calculate frame overhead and transmission time.

Updated 26 Sep 20266 min readComputer Networks

Simplification of CFG: Remove Epsilon, Unit and Useless Productions Step by Step

Simplify one context-free grammar from nine nonterminals to six. See each intermediate grammar, complete unit closures, symbol checks and final derivations.

Updated 26 Sep 20266 min readCompiler Design