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" »

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" »

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" »

Business Organizations: Structures & Key Concepts

Classified in Economy

Written on in English with a size of 2.36 KB

Chapter 3: Business Organizations

There are five main forms of business organizations in the private sector:

  1. Sole Traders
  2. Partnerships
  3. Private Limited Companies (PLCs)
  4. Public Limited Companies (Ltd.)
  5. Co-operatives

Key Business Terms

Limited Liability: This term refers to the owners of a company (shareholders). They are not held responsible for the debts of the company they own. Their liability is limited to the investment they made in buying the shares.

Partnership Agreement: A written and legal agreement between business partners. While not essential, it is always recommended.

Sole Traders: The most common form of business organization. It is a business owned and operated by one person.

Partnerships: A group or association between 2 and 20 people who... Continue reading "Business Organizations: Structures & Key Concepts" »

Meteorology

Classified in Other subjects

Written on in English with a size of 203.26 KB

  • "Detached clouds in the form of white, delicate filaments or white or mostly white patches or narrow bands. These clouds have fibrous (hair-like) appearance, or a silky sheen, or both." CIRRUS
    ·8/8 stratus base 200 FT/AGL is observed at sunrise at an aerodrome in the north of France; the QNH is 1028 hPa and there is a variable wind of 3 kt. What change in these clouds is likely at 1200 UTC in summer and winter? WINTER: OVC. BASE 500 FT/AGL; SUMMER: SCT, BASE 3000 FT/AGL
    ·A blocking anticyclone in the northern hemisphere is: A WARM ANTICYCLONE/QUASI STATIONARY/SITUATED BETWEEN 50°N AND 70°N
    ·A Cb with thunderstorm has reached the mature stage. Which statement is correct? IN TEMPERATURES LOWER THAN -23°C ICING IS STILL POSSIBLE
    ·A cold air
... Continue reading "Meteorology" »

A320 Cockpit Components & Flight Operations

Classified in Language

Written on in English with a size of 3.91 KB

Autoflight - Automatic Flight

Captain Seat - Captain's Seat

Glareshield - Autopilot Panel

Center Pedestal - Central Panel

Circuit Breaker - Automatic Circuit

Display - Screen

COMPOUND WORDS

Flight Deck - Flight Cabin

FWD Section - Forward Section

Lever - Control Lever

Overhead Panel - Upper Panel

Pitch Wheel - Nose Wheel

Push Button - Pressure Button

Sidestick - Control Lever

Windshield - Aircraft Windshield

VOCABULARY: APPROACH DELAYS

Headwind - Opposing Wind

A wind that is blowing in the opposite direction to your direction of travel.
Strong headwinds can cause delays for approaching aircraft.

Runway Excursion - Aircraft Veering Off Runway

When an aircraft veers off the active runway surface.
The nose gear steering failed and the aircraft veered off the runway,
... Continue reading "A320 Cockpit Components & Flight Operations" »

Exchange Rates, Competitiveness, and Financial Ratios

Classified in Economy

Written on in English with a size of 2.51 KB

Competitiveness and Trade

Nominal Exchange Rates

When our currency's value increases, our competitiveness decreases, and importations increase in relative terms.

Price Levels

  • Our Country: If prices in our country increase, our exports decrease, and imports increase.
  • Foreign Country: If prices in foreign countries increase, our competitiveness increases, benefiting our exports, and our imports decrease.

Foreign Exchange Market

  • Price Determination: The exchange rate between countries is established based on supply and demand.
  • Hedging: Protection against currency fluctuations, safeguarding investors and businesses from losses due to currency appreciation or depreciation.
  • International Finance: Countries can lend and borrow money by converting currencies.
... Continue reading "Exchange Rates, Competitiveness, and Financial Ratios" »

Understanding Forex, Financial Ratios, and Country Competitiveness

Classified in Economy

Written on in English with a size of 311.95 KB

Forward Exchange (EUR/SEK):

x = Exchange rate * (1 + SEK interest rate) / (1 + EUR interest rate).

CAP: Establishes an upper limit on interest rates. Floor: Establishes a lower limit on interest rates. EBITDA: Higher than net income. ROE: Return on Equity. For the equity the company provides, it generates an operating income of X annually.

Theoretical Semiannual Euribor:

(1 + First-half rate) * (1 + Second-half rate) = (1 + Annual rate).

Nominal Exchange Rate: (Nominal Exchange Rate * Domestic Price Level) / Foreign Price Level.

Spot Market: Notional amount * (1 / Current exchange rate - 1 / Initial exchange rate). Positive value means that in 9 months the spot market will be more expensive.

FXA (Foreign Exchange Agreement): Notional amount * (1... Continue reading "Understanding Forex, Financial Ratios, and Country Competitiveness" »

Reported Speech: A Comprehensive Guide with Examples

Classified in English

Written on in English with a size of 3.58 KB

Reported Speech

Types of Reported Speech

Yes/No Questions

Structure: S + reporting verb + if/whether + S + past tense verb

Example: He asked if he was late.

Wh- Questions

Structure: S + reporting verb + wh-word + S + past tense verb

Example: He asked where he had left his keys.

Orders and Requests

Structure: S + reporting verb + object + (not) + to + infinitive

Note: Use "told" for orders.

Example: He told me to be quiet.

Suggestions

Structure 1: S + suggest (tense) + (not) + verb-ing

Structure 2: S + suggest + that + S + should + infinitive

Example: She suggested going for a walk.

Reporting Verbs

Verbs followed by "to + infinitive"

Examples: agree, offer, refuse, promise, threaten

Example: We agreed not to buy a car.

Additional verbs with object: advise, invite,... Continue reading "Reported Speech: A Comprehensive Guide with Examples" »