GATE CSE Formula Sheet: Key Formulas for Every Subject
By MD ANISH AHAMADUpdated 4 Oct 20267 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.
Many GATE CSE numerical questions reuse the same formulas with new numbers.
A formula is only useful with its conventions: log base 2, powers of two for memory, 106 for Mbps unless stated.
Many traps are off-by-one errors: (k+n−1) cycles, 2m−1 windows, n(k−1)+1 resources.
You cannot carry paper into the exam (confirm current rules at gate2027.iitm.ac.in), so formulas must be in memory.
How to read this sheet
Notation: log means log2 unless written ln; ⌈x⌉ and ⌊x⌋ are ceiling and floor; (kn) is the binomial coefficient; xy is x to the power y. For memory sizes, KB means 210 unless the question says otherwise; for data rates, Mbps means 106 bits per second unless stated.
offset=log2B; sets=k×BC; index=log2(sets); tag=A−index−offset (B block bytes, C cache bytes, k associativity, A address bits; fully associative has index=0)
AMAT=t1+m1(t2+m2(t3+m3tmem)) (local miss rates; add lower-level time only on a miss)
Cycle τ=max stage delay+latch delay; Tpipe(n)=(k+n−1)τ; Tnonpipe(n)=n×(sum of stage delays)
Branch: CPI=1+fb(1−p)×penalty (fb branch fraction, p predictor accuracy)
With ack transmission time, add tack to the throughput denominator
GBN: Ws≤2m−1, so m=⌈log2(Ws+1)⌉; SR: Ws≤2m−1, so m=⌈log2Ws⌉+1
2m−1 vs 2m−1
CSMA/CD: Lmin=2tpropR=v2dR
Round trip (factor 2), not one way
Data per fragment =8⌊8MTU−20⌋; fragments =⌈data per fragmentD⌉; offsetk=8data before fragment k; MF=1 except the last
Offset in 8-byte units
Addresses in a /p block =232−p; usable hosts =232−p−2; subnets from /p to /q=2q−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
Internal node: p×ptr+(p−1)×key≤B, so p=⌊ptr+keyB+key⌋; leaf: k×(key+recptr)+ptr≤B, so k=⌊key+recptrB−ptr⌋
Levels for N records with fan-out f: ⌈logfN⌉ (including leaves); block accesses =levels+1 for the data block
Super keys with one candidate key of size k over n attributes =2n−k
Lossless binary decomposition iff (R1∩R2)→R1 or (R1∩R2)→R2 in F+; dependency preserving iff (F1∪F2)+=F+
Interleavings of two transactions with m and n operations =(mm+n)
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.
Read it daily in the final two weeks, and once more on the morning of the exam.
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.
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.
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.
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.
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 232−p addresses and 232−p−2 usable hosts, because the network and broadcast addresses are excluded. Splitting a /p block into /q subnets gives 2q−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+p2+p3)×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 p2 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 τ=max stage delay+latch delay, and n instructions take (k+n−1)τ, 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.