Cheatsheet

1. Fractional Knapsack Problem (Greedy Approach)
-------------------------------------------------
#include <stdio.h>
#include <stdlib.h>

struct Item {
    int weight, profit;
    float ratio;
};

int compare(const void *a, const void *b) {
    struct Item *i1 = (struct Item *)a;
    struct Item *i2 = (struct Item *)b;
    return (i2->ratio > i1->ratio) - (i2->ratio < i1->ratio);
}

void fractionalKnapsack(int n, int capacity, struct Item items[]) {
    for (int i =...

See on Student Notes »

Sceicne

Cells are open systems – they exchange both matter and energy with their environment.

Open System Examples (Cells):

  • In: Water, oxygen, nutrients, solar energy (in plants)

  • Out: Carbon dioxide, waste, thermal energy, kinetic energy

    Need Organ System
    Nutrient intake & use Digestive
    Gas exchange Respiratory, circulatory
    Movement & growth Musculoskeletal
    Response to stimuli Nervous
    Waste removal Excretory, respiratory, digestive
    Reproduction Reproductive
    Need Organ
    ...

    See on Wikiteka »

bio practicle




Q1: What is tar?
Tar is a sticky brown substance that is the main cause of lungs cancer in smokers. Q#2: How tar is produced? Tar is the particulate matter which is produced by burning of tobacco and forms a component of cigarette smoke. Q#3: What is the colour of healthy man's lungs? It is pinkish in colour Q#4: What is the condition of smoker's lungs?  Smoker's lungs are blackish due to deposition of tar. Smoker's lungs also contain some spots What are the effects of smoking? Immediate health...

See on Wikiteka »

What is the Policyholder Grievance Redressal System?

Grievance Redressal System Objectives of the Grievance Redressal System: To protect the interests of policyholders. To provide a structured channel for resolving complaints. To enhance customer satisfaction and trust. To ensure compliance with IRDAI guidelines. To improve service delivery and transparency. ⚙ Key Components / Parts of the System: 1. Grievance Redressal Officer (GRO): 2. Multiple Complaint Channels: 3. Acknowledgement of Complaint: 4. Resolution Timeline: 5. Grievance Escalation

...

See on Student Notes »

oops java

Multithreaded

• Multithreading is a Process to execute multiple threads at the same time withoutdependency of other thread called Mullltithreading .
• Java supports multithreaded programming, which allows you to write programs that do many things simultaneously.
• A multithreaded program contains two or more parts that can run concurrently.
Each part of such a program is called a thread.
• Thread is a predefined class which is available in java.lang package. Thread is a basic unit of CPU and

...

See on Student Notes »

Policy

Study Notes: Environmental Policy and Management Systems

Key Parts & Chapters Overview


PART 1: Foundations of Environmental Policy

1. Environmental Law

  • Definition: Legal framework addressing human impact on the environment (air/water pollution, waste, biodiversity, etc.).
  • Scope: Includes treaties, statutes, and regulations (e.g., Basel Convention).
  • Purpose: Protect ecosystems and human health by regulating resource use and pollution.
  • Examples:
    • Eco-energy policies to combat climate change.
...

See on Student Notes »

biology

Sericulture is an agro-based industry. It involves rearing of silkworm moths, Bombyx mori for the production of raw silk, which is the yarn obtained out of cocoons. Sericulture plays a major role in rural employment, poverty alleviation and earning foreign exchange.
Silkworm has four stages in its life cycle: egg, caterpillar (larva), pupa and adult moth.When the worms hatched, they are called caterpillars which are food specific and eat voraciously on mulberry leaves. One important factor to silk

...

See on Student Notes »

Fin Acc

Concepts (Assumptions): The fundamental beliefs that underpin accounting.

  • Business Entity: Business is separate from its owner.
  • Going Concern: Business will continue operating indefinitely.
  • Money Measurement: Only monetary transactions are recorded.
  • Accounting Period: Business life is divided into time periods (e.g., year).
  • Accrual: Revenues and expenses recognized when earned/incurred, not when cash changes hands.
  • Dual Aspect: Every transaction has two equal and opposite effects (debit/credit)
...

See on Student Notes »

vgeabeq

1 (Título): Hola a todos. Viaje visual mundo extraordinario Antoni Gaudí.
2 (Introducción): Antoni Gaudí i Cornet {nacio, fallecio} (1852-1926), arquitecto catalán, figura clave Modernismo catalán. Estilo único {sigue} cautiva.
 3 (Contexto): Genio de gaudi {floreció} barcelona, finales XIX-principios XX. Identidad catalana ferviente, Modernismo (Art Nouveau).
 4 (Influencias/Formación): Naturaleza, {estructura} lógica gótica, exotismo oriental. Estudios en Barcelona (Escola Tècnica Superior

...

See on Wikiteka »