GATE GUIDE

GATE CSE Formula Sheet: Key Formulas for Every Subject

By MD ANISH AHAMADUpdated 17 Sep 20268 min read

This GATE CSE formula sheet collects key formulas that past GATE papers have tested repeatedly, grouped by subject, with the trap to watch for where it matters most. It is a free selection from the book's last-minute revision sheet. Use it to check your recall, then practise each formula on previous-year questions.

In this guide
  1. Key takeaways
  2. How to read this sheet
  3. Operating System
  4. Computer Organization and Architecture
  5. Computer Networks
  6. Databases
  7. Algorithms
  8. Discrete and Engineering Mathematics
  9. Digital Logic
  10. Theory of Computation
  11. Compiler Design
  12. Programming and Data Structures
  13. How to revise with a formula sheet

Key takeaways

How to read this sheet

Notation: log means log base 2 unless written ln; ceil(x) and floor(x) are ceiling and floor; C(n, k) is the binomial coefficient; x^y is x to the power y. For memory sizes, KB means 2^10 unless the question says otherwise; for data rates, Mbps means 10^6 bits per second unless stated.

Operating System

Formula Watch out for
Turnaround = C − A; Waiting = Turnaround − Burst; Response = first dispatch − A Response is not waiting in RR
EAT = h × (t_TLB + t_mem) + (1 − h) × (t_TLB + (L + 1) × t_mem) Serial TLB lookup, L page-table levels; the page-table walk always goes to memory
EAT = (1 − p) × t_mem + p × t_fault Convert ms to ns
Deadlock impossible iff R ≥ sum_i (need_i − 1) + 1; homogeneous: R ≥ n × (k − 1) + 1 R = n × (k − 1) is still deadlock-prone
Entries per page-table page = page size / PTE size; bits per level = log(that); levels = ceil((v − o) / bits per level) Forgetting the outer table when counting memory
Max file size = (d + p + p^2 + p^3) × B, p = B / pointer size p^2 for double indirect (not 2p)

For how these formulas turn into questions, see Operating Systems for GATE CSE 2027.

Computer Organization and Architecture

Computer Networks

Formula Watch out for
t_trans = L / R; t_prop = d / v; RTT = 2 × t_prop (ack negligible) Bytes to bits; km to m
Stop-and-wait efficiency = 1 / (1 + 2a), a = t_prop / t_trans; throughput = L / (t_trans + 2 × t_prop) With ack transmission time, add t_ack to the throughput denominator
GBN: W_s ≤ 2^m − 1 so m = ceil(log(W_s + 1)); SR: W_s ≤ 2^(m − 1) so m = ceil(log(W_s)) + 1 2^m − 1 vs 2^(m − 1)
CSMA/CD: L_min = 2 × t_prop × R = 2 × d × R / v Round trip (factor 2), not one way
Data per fragment = 8 × floor((MTU − 20) / 8); fragments = ceil(D / that); offset_k = (data before fragment k) / 8; MF = 1 except the last Offset in 8-byte units
Addresses in /p = 2^(32 − p); usable hosts = 2^(32 − p) − 2; subnets from /p to /q = 2^(q − p) Hosts vs addresses
cwnd: below ssthresh double per RTT (cap at ssthresh); at or above, +1 MSS per RTT; timeout: ssthresh = cwnd / 2, cwnd = 1 MSS; triple dup ACK: Tahoe as timeout, Reno cwnd = ssthresh = cwnd / 2 Half the current cwnd, not the old ssthresh

The patterns behind these are covered in Computer Networks for GATE CSE 2027.

Databases

This page gives a selection. The book's last-minute revision sheet has full formula tables for all ten subjects, each row with symbols, when the formula applies and its typical trap, plus the top 50 concepts, the most-asked algorithms step by step, a traps table, edge cases and an exam-day checklist. It is part of the GATE CSE 2027 book.

Algorithms

Discrete and Engineering Mathematics

Digital Logic

Theory of Computation

Compiler Design

Programming and Data Structures

How to revise with a formula sheet

  1. Read it daily in the final two weeks, and once more on the morning of the exam.
  2. Attach a trap to every formula. Knowing (k + n − 1) is half the job; knowing that k × n is the classic wrong answer is the other half. Common mistakes that cost marks in GATE CSE lists the traps subject by subject.
  3. Write the unit next to every number. ms versus µs versus ns, KB as 1,000 or 1,024, bits versus bytes. Unit slips are a common cause of wrong NAT answers.
  4. Carry full precision. Round only the final answer, to the decimals the question asks for. The MCQ, MSQ and NAT strategy guide covers answer entry for each type.
  5. Use the rough sheet early. In the first five minutes, write the few formulas you are most likely to forget under pressure, such as the effective access time formula, (k + n − 1), the Go-Back-N and Selective Repeat window limits, and the minimum-resources formula.

To place this inside a full revision schedule, follow the GATE CSE last-month revision plan.

Frequently asked questions

Can I take a formula sheet into the GATE CSE exam?

No. Candidates cannot carry paper, a calculator, a phone or a watch into the exam hall. The exam provides a virtual calculator, rough sheets and a pen. A useful habit is to write a few easily forgotten formulas on the rough sheet in the first five minutes. Confirm the current exam-day rules at gate2027.iitm.ac.in.

How many usable hosts are there in a CIDR block?

A block with prefix length p has 2^(32 − p) addresses and 2^(32 − p) − 2 usable hosts, because the network and broadcast addresses are excluded. Splitting a /p block into /q subnets gives 2^(q − p) subnets. GATE questions deliberately say hosts or addresses, so read which one is asked.

What is the formula for maximum file size with inode indirect pointers?

Maximum file size = (d + p + p^2 + p^3) × B, where d is the number of direct pointers, B is the block size and p = B / pointer size is the number of pointers in one index block. The double indirect pointer reaches p^2 blocks, not 2p, and units are powers of two unless stated.

How long does a pipeline take to execute n instructions?

For a k-stage pipeline, the cycle time tau = max stage delay + latch delay, and n instructions take (k + n − 1) × tau, never k × n cycles. The non-pipelined time is n × sum of stage delays, with no latch delay. Stalls from hazards add extra cycles on top of k + n − 1.

How should I revise formulas before GATE CSE?

Read a compact formula sheet once a day in the final two weeks and once more on the exam morning. For each formula, know when it applies and the trap built around it. Write the unit next to every number, carry full precision and round only the final numerical answer to the stated decimals.

Sources

Dates, fees and the syllabus are set by the GATE 2027 organising institute and can change. Always confirm at gate2027.iitm.ac.in.

Keep reading

GATE CSE 2027 book1,016 pages · ₹250 ₹300
Buy now — ₹250