ECE Important Formulas & Tricks
1. ELQ (Electrical Engineering Basics)
Ohms Law: V = IR
Power: P = VI = I^2R = V^2/R
KVL: Sum of voltages in a loop = 0
KCL: Incoming current = Outgoing current
Capacitance: C = Q/V, Series: 1/Ceq = (1/C), Parallel: Ceq = C
Inductance: V = L di/dt
Trick: Use KVL for loops and KCL at nodes to simplify circuits.
2. AMPI (Analog & Mixed Signal Processing)
Voltage Gain: Av = Vout / Vin
Inverting Amp: Vout = - (Rf / Rin) * Vin
Non-inverting Amp: Vout = (1 + Rf / Rin) * Vin
Ideal Op-Amp: Infinite input resistance, zero output resistance, infinite gain
Trick: For op-amps, assume no current enters input and V+ = V- for ideal.
3. Writex (VLSI + CMOS)
CMOS Delay: tp = RC/2
Power: P = CL Vdd^2 f
Noise Margin: NM_H = VOH - VIH, NM_L = VIL - VOL
Trick: Lower Vdd or CL to reduce power.
4. Automata and Automata Fix
Pumping Lemma: s = xyz, then xy^iz L
DFA: Max string accepted n - 1 (n = states)
Regex: A+B = union, A.B = concat, A* = closure
Trick: Draw transition tables and state diagrams to verify strings.
5. CP (Competitive Programming)
GCD: gcd(a,b) = gcd(b, a % b)
Fast Power: a^b % m in O(log b)
ECE Important Formulas & Tricks
Fibonacci DP: F(n) = F(n-1) + F(n-2)
Time Complexities: O(1), O(log n), O(n), O(n log n), O(n^2)
Trick: Use precomputation and DP tables to optimize code.
6. Electronics and Semiconductor
Drift Current: I = nqAvd
Conductivity: = nq
Diode: I = I0 (e^(qV/kT) - 1)
BJT: IE = IB + IC, = IC/IB
MOSFET: ID = (1/2)nCox(W/L)(VGS - VT)^2
Trick: Use cut-in voltage (Si=0.7V, Ge=0.3V) in diode clipping circuits.