Notes, summaries, assignments, exams, and problems for Other courses

Sort by
Subject
Level

C Code Examples: Data Structures and Algorithms

Classified in Computers

Written on in English with a size of 5.54 KB

Recursive Binary Tree Traversals

Inorder Traversal:

void inorder(struct node *root)
{
  if(root != NULL)
  {
    inorder(root->left);
    printf("%d\t", root->data);
    inorder(root->right);
  }
}

Preorder Traversal:

void preorder(struct node *root)
{
  if(root != NULL)
  {
    printf("%d\t", root->data);
    preorder(root->left);
    preorder(root->right);
  }
}

Postorder Traversal:

void postorder(struct node *root)
{
  if(root != NULL)
  {
    postorder(root->left);
    postorder(root->right);
    printf("%d\t", root->data);
  }
}

Linked List Operations

Search

void search(struct node *head,int key)
{
  struct node *temp = head;
  while(temp != NULL)
  {
    if(temp->data == key)
      printf("key found");
    temp =
... Continue reading "C Code Examples: Data Structures and Algorithms" »

Verb Classification and Dative Alternation in English Grammar

Classified in English

Written on in English with a size of 4.31 KB

Core Linguistic Concepts

Determiners and Modifiers

The **Zero Determiner** refers to indeterminacy, often seen in phrases like "human beings who are rational."

  • **Verb vs. Adjective:** Verbs often use the continuous form (e.g., *be + -ing*). Adjectives allow gradation (e.g., *very entertaining*).
  • **Adverb vs. Adjective:** Adverbs modify verbs; adjectives modify nouns.

English Verb Classification

Main Verb Types

Verbs are classified based on their complementation patterns:

  • **Intransitive (H):** Requires only the head/subject (e.g., *She signed, I am eating*).
  • **Copulative (H + PCS):** Links the head/subject to a Predicate Complement of the Subject (e.g., *Turned red, seems an interesting idea, in good condition*).
  • **Transitive (H + DO):** Requires a Direct
... Continue reading "Verb Classification and Dative Alternation in English Grammar" »

Hedging and Speculation with Futures and Options

Classified in Economy

Written on in English with a size of 5.06 KB

Hedging with S&P 500 Index Futures

SIF hedging: NF = VF(antiguo) = Fo x Z. NF (Number of contracts) = Vp (portfolio value) / (VF x Bp) (Beta). With this hedge, risk is removed. If the index goes up, the profit in the portfolio will be offset by losses in SIFs contracts and vice versa.

Example: S&P 500 falls 5%:

  • In the portfolio: Rp = Bp x (-5%) = -10% of a portfolio of $10M, resulting in $9M (Final Value).
  • In the SIFS contracts: Si = 980 (S&P 500 value given) x 0.95 (100% - 5%) = 931. Fi = 931 x (1 + 0.04 x 5/12 (next month timeframe)) = 946.52. VF = NF x (Fi - Fo) x Z (250).
  • Gain on futures: VF(New) / Equity portfolio value.
  • Outcome stock portfolio: 2 x (-5%) = -10%.
  • Final Value portfolio: $10M - $1M + VF(New).

Margin Payments

Margin payments... Continue reading "Hedging and Speculation with Futures and Options" »

Japan's Post-War Economic Growth: Key Factors

Classified in Economy

Written on in English with a size of 2.98 KB

Theme II: The Development of the Global Economy

5. Japan's Post-War Economic Growth

I. Role of Government

  • Growth-driven policies and focused leadership
    • The Liberal Democratic Party (LDP) mostly ruled after 1955.
    • A cohesive unity of bureaucrats and politicians made up competent policymakers focused on achieving economic development and self-reliance.
    • Tight policy coordination was known as the "Iron Triangle."
    • The Yoshida Doctrine was implemented in the early 1950s.
    • Ikeda's Income Doubling Plan was introduced in the early 1960s.
    • Sato's Three Non-Nuclear Principles were established in the early 1970s.
  • Heavy government involvement in the free market
    • The Ministry of International Trade and Industry (MITI) decided, charted, and planned Japan's industrial and
... Continue reading "Japan's Post-War Economic Growth: Key Factors" »

Cold air pool atpl

Classified in History

Written on in English with a size of 4.27 KB

THEME II: The Development of the Global Economy

  1. Growth of GE

ROLE OF THE US

  • Providing post-war economic aid

> In 1946, Marshall Plan to Western Europe of US$13 billion

> 1/2 billion to Japan through Reverse Course Policy

> By 1952, economy of every participant state surpassed pre-war levels

> For all Marshall Plan recipients, output was 35% higher than in 1938

> In the 1950s, Western German exports increased by 500%

> US tolerated European and Japanese protectionism against itself

> Encouraged the export of technology through Technical Assistance Programme, funding European engineers and industrialists' visit to US mines and factories to bring home American advances

  • Maintaining the 3 pillars of the Bretton-Woods System

> IMF... Continue reading "Cold air pool atpl" »

Comparative Politics Key Concepts

Classified in Social sciences

Written on in English with a size of 2.86 KB

Comparative Politics
Study and evaluation of similarities and differences between political systems.
State
Political organization, institution for government, possessing sovereignty and territory.
Nation
Group of people united by fundamental characteristics.
Nationalism
Belief by a nation that it can be a state.
Nation-State
Borders coincide with a particular nation.
Territoriality
Unit has a certain geographic perimeter.
Sovereignty
State is supreme within its own borders.
Internal Control
Monopoly on the use of legitimate violence.
External Autonomy
Not subservient to any other state.
De Facto
Empirical.
De Jure
Juridical.
Three Worlds
System of classifying states.
First World
Liberal democracy.
Second World
Communist.
Third World
Not powerful enough to fit in other
... Continue reading "Comparative Politics Key Concepts" »

University Baseball Team 2025 Season Schedule: Dates & Opponents

Classified in History

Written on in English with a size of 5.18 KB

University Baseball Team 2025 Season Schedule

All times Eastern. An asterisk (*) denotes a conference game.

February 2025 Games

  • Friday, February 13: Seton Hall (Chapel Hill) – 3 p.m.
  • Saturday, February 14: Seton Hall (Chapel Hill) – 2 p.m.
  • Sunday, February 15: Seton Hall (Chapel Hill) – 1 p.m.
  • Friday, February 20: UCLA (Chapel Hill) – 3 p.m.
  • Saturday, February 21: UCLA (Chapel Hill) – 2 p.m.
  • Sunday, February 22: UCLA (Chapel Hill) – 1 p.m.
  • Tuesday, February 24: St. John’s (Chapel Hill) – 3 p.m.
  • Wednesday, February 25: Winthrop (Chapel Hill) – 3 p.m.
  • Friday, February 27: Rhode Island (Chapel Hill) – 3 p.m.
  • Saturday, February 28: Rhode Island (Chapel Hill) – 2 p.m.

March 2025 Games

  • Sunday, March 1: Rhode Island (Chapel Hill) – 1 p.m.
... Continue reading "University Baseball Team 2025 Season Schedule: Dates & Opponents" »

Computer Hardware and Architecture Practice Questions

Classified in Technology

Written on in English with a size of 3.24 KB

Question 1

Which type of memory is primarily used as cache memory?

Answer: SRAM

Question 2

Which two considerations would be of the greatest importance when building a workstation that will run multiple virtual machines? (Choose two.)

  • Number of CPU cores
  • Amount of RAM

Question 3

A user playing a game on a gaming PC with a standard EIDE 5400 RPM hard drive finds the performance unsatisfactory. Which hard drive upgrade would improve performance while providing more reliability and using less power?

Answer: An SSD

Question 4

Which hardware upgrade would allow the processor in a gaming PC to provide the optimal gaming performance?

Answer: Large amounts of fast RAM

Question 5

Which two storage devices use a magnetic medium for storing data? (Choose two.)

  • Tape
... Continue reading "Computer Hardware and Architecture Practice Questions" »

Genetic Inheritance, Natural Selection, and Hormonal Regulation

Classified in Biology

Written on in English with a size of 265.49 KB

Sickle Cell Anaemia and Malaria Resistance

Sickle cell anaemia is a genetic mutation in humans characterized by a disorder in the amino acid sequence of the haemoglobin molecule. This results in red blood cells taking on a sickle shape. Malaria is caused by a parasite that thrives in red blood cells; consequently, individuals with sickle-shaped cells possess immunity to malaria. This explains why the condition is more prevalent in tropical regions where malaria is common. However, individuals with sickle cell anaemia typically have a significantly shorter life expectancy.

Artificial and Natural Selection

Artificial selection is utilized to produce varieties of animals and plants with increased economic importance.

Defining Natural Selection

Natural

... Continue reading "Genetic Inheritance, Natural Selection, and Hormonal Regulation" »

Mastering Your Voice Assistant: Clever Questions for Siri

Classified in English

Written on in English with a size of 5.82 KB

Engaging Your Voice Assistant: Essential Prompts

Discover a comprehensive list of questions and commands to interact with your voice assistant, from everyday queries to humorous and thought-provoking prompts. Enhance your experience and uncover unique responses.

Basic Interactions & Everyday Commands

  • Call me [Name]: Your assistant will use this name when addressing you.
  • Knock Knock.
  • Show me the money.
  • What are you wearing?
  • How are you?
  • Where are you?
  • What do you look like?
  • Where are you from?
  • How's it going?
  • Thank you.
  • Talk to me.
  • Good morning. (Try saying this at night for a unique response.)
  • Happy Birthday!
  • Merry Christmas.
  • LOL.
  • Ha Ha!
  • Ha Ha Ha!
  • Why?
  • Why not?
  • It's all good.
  • Blah blah blah.
  • Guess What? ...Correct.
  • You're right!
  • I'm happy.
  • I'm tired.
  • You are boring.
... Continue reading "Mastering Your Voice Assistant: Clever Questions for Siri" »