Notes, summaries, assignments, exams, and problems

Sort by
Subject
Level

Mastering Stacks, Deques, Trees, and Graph Data Structures

Classified in Computers

Written on in English with a size of 21.54 KB

A stack is a fundamental data structure in computer science that follows the Last In, First Out (LIFO) principle. This means that the last element added to the stack is the first one to be removed. You can think of it like a stack of plates: you can only add or remove the top plate.

### Key Concepts of a Stack:

1. Basic Operations:
   - Push: This operation adds an element to the top of the stack.
   - Pop: This operation removes the element from the top of the stack and returns it.
   - Peek (or Top): This operation returns the top element of the stack without removing it.
   - IsEmpty: This operation checks whether the stack is empty.

2. Implementation:
   Stacks can be implemented using arrays or linked lists. Here are the details for... Continue reading "Mastering Stacks, Deques, Trees, and Graph Data Structures" »

Taxation of Income from Other Sources in India: Key Q&A

Classified in Economy

Written on in English with a size of 11.99 KB

Income from Other Sources: Key Questions and Answers

Q1. What is the name of the fifth head of income?

Ans: Income from other sources.

Q2. What are the essential conditions for chargeability of income under the head 'Income from Other Sources'?

Ans: The following conditions must be satisfied:

  • (i) There must be an income that is not exempted from tax.
  • (ii) The income must not be chargeable under any of the first four heads (i.e., other than the head 'Income from Other Sources').

Q3. Write two examples of income that are chargeable under the head 'Income from Other Sources'.

Ans:

  • (i) Winning from lotteries
  • (ii) Winning from crossword puzzles

Q4. Under which head is the salary of MP/MLA charged?

Ans: Income from other sources.

Q5. Define the term 'security'

... Continue reading "Taxation of Income from Other Sources in India: Key Q&A" »

Essential Linux Commands: A Practical Reference

Classified in Computers

Written on in English with a size of 3.95 KB

Essential Linux Commands

File and Directory Management

  • mkdir: Create a new directory.
  • ls: List contents of a directory.
  • rm: Remove files or directories (-r for recursive).
  • cp: Copy files or directories.
  • mv: Move or rename files or directories.
  • cat: Display file contents or create files.
  • less: View file contents one page at a time.
  • head: Display the first 10 lines of a file.
  • tail: Display the last 10 lines of a file.

System Information

  • uname: Show system information (kernel, version, etc.).
  • top: Display running processes and resource usage.
  • df: Show disk space usage.
  • df -h: Show disk usage in human-readable format.
  • free: Display memory usage (RAM and swap).

File Creation and Editing

  • touch: Create an empty file or update its timestamp.
  • echo: Write text to a file
... Continue reading "Essential Linux Commands: A Practical Reference" »

Essential Chemistry Definitions and Concepts

Classified in Chemistry

Written on in English with a size of 4.5 KB

Essential Chemistry Definitions

Fundamental Concepts

  • Physical Property: Characteristics observed without changing the substance (color, melting point, density, boiling point).
  • Chemical Property: Characteristics observed when a substance changes into another (reactivity with air, acid, base, water, other chemicals).
  • Law of Conservation of Matter: Matter is neither created nor destroyed.
  • Atomic Theory: Theory of the nature of atoms.
  • Isotope: Atoms of the same element with different numbers of neutrons.
  • Ion: Atom or molecule with a net electric charge.
  • Cation: Positively charged ion.
  • Anion: Negatively charged ion.
  • Atomic Mass Unit (amu): Unit of mass for expressing atomic & molecular weights.
  • Mole: Unit for amount of substance (6.022 x 10^23 particles)
... Continue reading "Essential Chemistry Definitions and Concepts" »

Probability and Set Theory: Key Concepts and Formulas

Classified in Mathematics

Written on in English with a size of 621.25 KB

De Morgan's Law

De Morgan's Law: (Flip if the union is true)

g8dOSouHHJeLgAAAABJRU5ErkJggg==

tEHF2bHGd7QAAAABJRU5ErkJggg==

, image of set: [min, max]; one-to-one: horizontal line test; Onto: Image must equal domain; Bijective: one-to-one and Onto


jwZqnYInIm4AAAAASUVORK5CYII=

|| EV

FbMmWWz8fkWEKgiAIwgUQ9zAFQRAE4QKIgCkIgiAIF0AETEEQBEH4UfAD9AVFr05q6ZYAAAAASUVORK5CYII=

||


Possible Outcomes and Probability Calculations

  • Repetition formula: nk
    • Example: 5 awards (k) and 30 students (n), with no limit to awards per student.
  • Permutation formula: P(n, k) = n! / (n - k)!
    • Example: Each student gets 1 award, so the number of students decreases by one each award.
  • No overlap probability: P(n, k) / repetition formula
  • Arrangements: a = slots → a! can be multiplied by arrangements within slots
  • Die sum probability:
    • List combinations that lead to the sum for each die.
    • If a die is rolled multiple times, each combination has (rolls)! permutations.
    • Add
... Continue reading "Probability and Set Theory: Key Concepts and Formulas" »

Human Body Systems: Excretion, Digestion, and Immunity

Classified in Biology

Written on in English with a size of 3.52 KB

Human Body Systems and Excretion

Tissues/Organs/Organ System

Function in Excretion

Digestive System

Removal of faeces

Respiratory System

Removal of CO2 (alveoli)

Skin (sweat glands)

Removal of sweat and toxins

Urinary System

Blood filtration (Urine)

Absorption vs. Assimilation

Compare and contrast

Absorption and Assimilation

  • Similarity: Both involve nutrients—absorption transfers them into the bloodstream, and assimilation uses them in cells.

  • Difference: Absorption happens in the digestive system; assimilation occurs in tissues.

Digestion vs. Nutrition

Digestion and Nutrition

  • Similarity: Both are essential for energy and growth—digestion breaks down food, and nutrition provides the substances needed for this process.

  • Difference: Digestion is the physical

... Continue reading "Human Body Systems: Excretion, Digestion, and Immunity" »

The Outsiders: Themes, Characters, and Plot Analysis

Classified in Psychology and Sociology

Written on in English with a size of 3.56 KB

Themes in The Outsiders

Class Conflict: The rivalry between the Greasers and Socs emphasizes the socioeconomic divide and its impact on identity and relationships.

Identity and Belonging: Characters grapple with their place in society and within their groups, highlighting the search for self amidst stereotypes.

Violence and Its Consequences: The physical and emotional toll of gang rivalry demonstrates the destructiveness of unchecked aggression.

Loyalty and Brotherhood: The Greasers' strong bonds showcase the importance of chosen family in adversity.

Loss of Innocence: Ponyboy and Johnny, especially, confront moral dilemmas and death, leading to a poignant coming-of-age journey.

Conflicts in The Outsiders

  • Man vs. Society: Both groups face judgment
... Continue reading "The Outsiders: Themes, Characters, and Plot Analysis" »

Crafting Persuasive Essays: Argumentation and Opinion Writing

Classified in English

Written on in English with a size of 2.92 KB

Writing for and Against

Introduction (No Opinion)

Lately, not only has ____ been a popular topic, but it has also led some collectives to voice criticism of the mainstream attitude. It should be a crucial target for the (administration, government, state, whole society) to____, due to____. In this paper, two approaches which ought to be taken into account will be discussed.

Advantages

Those who are in favour claim that ____. To begin with ____. Besides ____. Another major advantage is that ____.

Disadvantages

Nevertheless, in spite of the advantages, there are the main drawbacks. One of the biggest concerns is ____, in other words, _____. Another negative aspect is that ____. Lastly ____.

Conclusion

Having looked at both sides of the argument, I really... Continue reading "Crafting Persuasive Essays: Argumentation and Opinion Writing" »

Cost Accounting Essentials: Key Concepts and Calculations

Classified in Mathematics

Written on in English with a size of 540.18 KB

Chapter 2: Predetermined Overhead Rate

Predetermined Overhead Rate = Estimated Total Manufacturing Overhead (MOH) / Estimated Total MOH Driver (e.g., Direct Labor hours, Direct Labor costs, Machine Hours)

Prime Cost = Direct Materials + Direct Manufacturing Labor

Conversion Cost = Direct Manufacturing Labor + Indirect Manufacturing Overhead

Cost Accumulation: Data is collected in an organized way (also known as cost pools).

Cost Assignment: Systematically links an actual cost pool to a distinct cost object (e.g., Tires, engine, labor assigned to car cost).

Activity Base: Examples include kilometers driven in a car, units produced, units sold, machine hours.

Product Cost: Costs tied to creating a product (Direct Materials, Direct Labor, Manufacturing... Continue reading "Cost Accounting Essentials: Key Concepts and Calculations" »

Vocabulary Glossary: A Curated Collection

Classified in Music

Written on in English with a size of 2.17 KB

Vocabulary Glossary

Part 1

  • Ragtime: A style of music characterized by a syncopated melodic line and regularly accented accompaniment, evolved by Black American musicians in the 1890s.
  • Entwined: Wind or twist together; interweave.
  • Crumbling: Breaking or falling apart into small fragments, especially as part of a process of deterioration.
  • Loom: To appear as a large, often frightening or unclear shape or object; also, a device for weaving fabric.
  • Sprawls: A small contrasting part of something.
  • Haggard: Looking exhausted and unwell, especially from fatigue, worry, or suffering.
  • Tenantry: The tenants of an estate; tenancy.
  • Billowy: Characterized by or full of billows; surging.
  • Cryptograph: A coded message or the art of writing or solving codes.
  • Staggering:
... Continue reading "Vocabulary Glossary: A Curated Collection" »