GATE GUIDE

GATE CSE Formula Sheet: Key Formulas for Every Subject

By MD ANISH AHAMADUpdated 4 Oct 20267 min read
GATE CSE Formula Sheet: Key Formulas for Every Subject

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. Subject-wise formula sheets
  14. How to revise with a formula sheet

Key takeaways

How to read this sheet

Notation: log⁡\log means log⁡2\log_2 unless written ln⁡\ln; ⌈x⌉\lceil x \rceil and ⌊x⌋\lfloor x \rfloor are ceiling and floor; (nk)\binom{n}{k} is the binomial coefficient; xyx^y is xx to the power yy. For memory sizes, KB means 2102^{10} unless the question says otherwise; for data rates, Mbps means 10610^6 bits per second unless stated.

Operating System

Formula Watch out for
Turnaround=C−A\text{Turnaround} = C - A; Waiting=Turnaround−Burst\text{Waiting} = \text{Turnaround} - \text{Burst}; Response=first dispatch−A\text{Response} = \text{first dispatch} - A Response is not waiting in RR
EAT=h (tTLB+tmem)+(1−h) (tTLB+(L+1) tmem)\text{EAT} = h\,(t_{\text{TLB}} + t_{\text{mem}}) + (1 - h)\,\big(t_{\text{TLB}} + (L + 1)\,t_{\text{mem}}\big) Serial TLB lookup, LL page-table levels; the page-table walk always goes to memory
EAT=(1−p) tmem+p tfault\text{EAT} = (1 - p)\,t_{\text{mem}} + p\,t_{\text{fault}} Convert ms to ns
Deadlock impossible iff R≥∑i(needi−1)+1R \ge \sum_i (\text{need}_i - 1) + 1; homogeneous: R≥n(k−1)+1R \ge n(k - 1) + 1 R=n(k−1)R = n(k - 1) is still deadlock-prone
Entries per page-table page =page sizePTE size\displaystyle = \frac{\text{page size}}{\text{PTE size}}; bits per level =log⁡2(entries per page)= \log_2(\text{entries per page}); levels =⌈v−obits per level⌉\displaystyle = \left\lceil \frac{v - o}{\text{bits per level}} \right\rceil Forgetting the outer table when counting memory
Max file size=(d+p+p2+p3)×B\text{Max file size} = (d + p + p^2 + p^3) \times B, with p=B/pointer sizep = B / \text{pointer size} p2p^2 for double indirect (not 2p2p)

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

Computer Organization and Architecture

Computer Networks

Formula Watch out for
ttrans=L/Rt_{\text{trans}} = L / R; tprop=d/vt_{\text{prop}} = d / v; RTT=2 tprop\text{RTT} = 2\,t_{\text{prop}} (ack negligible) Bytes to bits; km to m
Stop-and-wait efficiency =11+2a\displaystyle = \frac{1}{1 + 2a}, a=tpropttrans\displaystyle a = \frac{t_{\text{prop}}}{t_{\text{trans}}}; throughput =Lttrans+2 tprop\displaystyle = \frac{L}{t_{\text{trans}} + 2\,t_{\text{prop}}} With ack transmission time, add tackt_{\text{ack}} to the throughput denominator
GBN: Ws≤2m−1W_s \le 2^m - 1, so m=⌈log⁡2(Ws+1)⌉m = \lceil \log_2(W_s + 1) \rceil; SR: Ws≤2m−1W_s \le 2^{m-1}, so m=⌈log⁡2Ws⌉+1m = \lceil \log_2 W_s \rceil + 1 2m−12^m - 1 vs 2m−12^{m-1}
CSMA/CD: Lmin⁡=2 tprop R=2dRv\displaystyle L_{\min} = 2\,t_{\text{prop}}\,R = \frac{2dR}{v} Round trip (factor 2), not one way
Data per fragment =8⌊MTU−208⌋\displaystyle = 8 \left\lfloor \frac{\text{MTU} - 20}{8} \right\rfloor; fragments =⌈Ddata per fragment⌉\displaystyle = \left\lceil \frac{D}{\text{data per fragment}} \right\rceil; offsetk=data before fragment k8\displaystyle \text{offset}_k = \frac{\text{data before fragment } k}{8}; MF=1\text{MF} = 1 except the last Offset in 8-byte units
Addresses in a /p/p block =232−p= 2^{32-p}; usable hosts =232−p−2= 2^{32-p} - 2; subnets from /p/p to /q/q =2q−p= 2^{q-p} Hosts vs addresses
cwnd: below ssthresh double per RTT (cap at ssthresh); at or above, +1+1 MSS per RTT; timeout: ssthresh=cwnd/2\text{ssthresh} = \text{cwnd}/2, cwnd=1\text{cwnd} = 1 MSS; triple dup ACK: Tahoe as timeout, Reno cwnd=ssthresh=cwnd/2\text{cwnd} = \text{ssthresh} = \text{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

Standard recurrences, each result a Θ\Theta bound:

T(n)=T(n−1)+n⇒  Θ(n2)T(n)=T(n/2)+1⇒  Θ(log⁡n)T(n)=2T(n/2)+n⇒  Θ(nlog⁡n)T(n)=T(n)+1⇒  Θ(log⁡log⁡n)T(n)=T(n/3)+T(2n/3)+n⇒  Θ(nlog⁡n)\begin{aligned} T(n) &= T(n - 1) + n &&\Rightarrow\; \Theta(n^2) \\ T(n) &= T(n / 2) + 1 &&\Rightarrow\; \Theta(\log n) \\ T(n) &= 2T(n / 2) + n &&\Rightarrow\; \Theta(n \log n) \\ T(n) &= T(\sqrt{n}) + 1 &&\Rightarrow\; \Theta(\log \log n) \\ T(n) &= T(n / 3) + T(2n / 3) + n &&\Rightarrow\; \Theta(n \log n) \end{aligned}

Discrete and Engineering Mathematics

Digital Logic

Theory of Computation

Compiler Design

Programming and Data Structures

Subject-wise formula sheets

Each of these goes deeper on one part of the GATE CSE paper, with a worked example and the trap for every formula:

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)(k + n - 1) is half the job; knowing that k×nk \times 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)(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 pp has 232−p2^{32-p} addresses and 232−p−22^{32-p} - 2 usable hosts, because the network and broadcast addresses are excluded. Splitting a /p/p block into /q/q subnets gives 2q−p2^{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+p2+p3)×B= (d + p + p^2 + p^3) \times B, where dd is the number of direct pointers, BB is the block size and p=B/pointer sizep = B / \text{pointer size} is the number of pointers in one index block. The double indirect pointer reaches p2p^2 blocks, not 2p2p, and units are powers of two unless stated.

How long does a pipeline take to execute n instructions?

For a kk-stage pipeline, the cycle time τ=max stage delay+latch delay\tau = \text{max stage delay} + \text{latch delay}, and nn instructions take (k+n−1) τ(k + n - 1)\,\tau, never k×nk \times n cycles. The non-pipelined time is n×(sum of stage delays)n \times (\text{sum of stage delays}), with no latch delay. Stalls from hazards add extra cycles on top of k+n−1k + 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,020 pages · ₹250 ₹300
Buy now — ₹250