Compiler Design: Parsing, Optimization, and Memory Management

Top-Down vs. Bottom-Up Parsing

Bottom-up parsing starts from the input string and reduces it to the start symbol (leaves → root). Example: LR parsing.

Top-down parsing is simple but less powerful, while bottom-up is complex but handles more grammars.

FIRST Algorithm

  • If X is terminal → FIRST(X) = {X}
  • If X → ε → include ε
  • If X → Y₁Y₂…Yₙ:
    • Add FIRST(Y₁) (except ε)
    • If ε in FIRST(Y₁), check next
    • If all have ε → add ε
  • Repeat until no change

FOLLOW Algorithm

  • Put $ in FOLLOW(Start Symbol)
Read More

Comprehensive English Verb and Noun Synonym Reference

English Vocabulary Reference

This table provides a structured list of common English verbs, their corresponding noun forms, and relevant synonyms for both parts of speech to help improve your writing and vocabulary.

Verb and Noun Pairs

VerbNounSynonym (Verb)Synonym (Noun)
to bondbondto connectconnection
to argueargumentto quarrelquarrel
to attractattractionto lurelure
to bring upupbringingto raiseraising
to proposeproposalto suggestsuggestion
to fosterfosterageto supportsupport
to starestareto gazegaze
to
Read More

Understanding Viruses: Structure, Replication, and Biology

The Discovery of Viruses

  • Dmitri Ivanovski discovered that a disease in tobacco plants was spread by liquid extracted from infected plants.
  • Martinus Beijerinck named these tiny disease-causing particles “viruses,” the Latin word for poison.
  • Wendell Stanley showed that viruses can be crystallized, concluding they are not truly alive.
  • Viruses are defined as nonliving particles made of proteins, nucleic acids, and sometimes lipids.

Key Vocabulary

  • Virus: A nonliving particle made of proteins, nucleic acids,
Read More

Understanding the OSI Model Application Layer

The Application Layer is the topmost layer of the OSI Model. It is the layer closest to the user and provides network services directly to end-user applications.

What the Application Layer Does

  • Acts as the interface between user applications and the network.
  • Enables software like browsers, email clients, and file transfer tools to communicate over a network.
  • Provides services such as:
    • File transfer
    • Email communication
    • Web browsing
    • Remote login

Common Protocols at the Application Layer

  • HTTP: Used for web browsing.
Read More

Computer Networking: Hardware, Software, and Models

Network Hardware and Software Essentials

Understanding the distinction between network hardware and network software is fundamental to grasping how modern communication systems function.

Network Hardware

Network hardware refers to the physical devices used to connect computers and other devices in a network to enable communication.

Key Components of Network Hardware

  • Computers/Nodes: Devices like PCs, laptops, and servers that send and receive data.
  • Network Interface Card (NIC): Allows a device to connect
Read More

VLSI Physical Design: Power, Placement, and Pin Assignment

Power Planning and Reliability in VLSI

Power Planning is a critical step in physical design that ensures the proper distribution of power (VDD) and ground (GND) across the chip. It is necessary to maintain a stable voltage supply to all components and avoid performance degradation.

Proper power planning helps in reducing critical issues such as:

  • IR drop (voltage drop)
  • Electromigration
  • Overheating

Reliability considerations focus on ensuring the long-term operation of the circuit by addressing signal integrity,

Read More

Transport Layer Functions: TCP vs UDP Explained

The Transport Layer is the fourth layer of the OSI Model and plays a vital role in providing end-to-end communication between source and destination systems. It ensures that data is delivered reliably, accurately, and in the correct sequence.

Core Functions of the Transport Layer

  • Segmentation and Reassembly: Large messages are divided into smaller units called segments and reassembled at the receiver’s end.
  • Flow Control: Regulates the speed of data transmission so the receiving device is not overwhelmed.
Read More

Network Layer Functions, Routing, and Congestion Control

Network Layer: Functions and Protocols

The Network Layer is the third layer of the OSI Model. It is responsible for routing, addressing, and forwarding data packets from the source to the destination across multiple networks. (10 Marks Answer)

Main Functions

  • Logical Addressing: Assigns IP addresses to devices and ensures each device is uniquely identified.
  • Routing: Determines the best path for data transmission using routing algorithms and tables.
  • Packet Forwarding: Moves packets from one network to
Read More

Job reassignment of employees as motivational action

INDIVIDUAL

ORGANIZATIONAL BEHAVIOR à The study of how individuals and groups interact within organizations to describe, understand, predict, and change behavior

Lewin’s Equation (B=f(P,E))à


Behavior is a function of Personality (Internal) and Environment (External). Ezxmple:

Chile Miners:

The extreme environment forced them to suppress selfish traits and cooperate.

Internal vs. External Factors à Internal (P):


Personality, emotions, motivation, hard/soft skills.

External (E):

Work culture, leadership,

Read More

Nuclear Physics: Forces, Decay, and Energy Principles

Forces in the Nucleus

  • Gravity: Force of attraction.
  • Weak nuclear: Weak interaction.
  • Strong nuclear: Strong interaction.

The strong force is attractive at very short distances and repulsive at slightly longer distances as a residual effect of holding together electrons and nucleons. Isotopes have the same number of protons but a different number of neutrons.


Half-Life Calculations

Half-Life FormulaFinding Number of Half-Lives

N = N0 x (1/2)n

n = T / t1/2

wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw== wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw== wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw== wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw== wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw== wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==

N = number of nuclei or mass remaining

N0 = start

Read More