Notes, summaries, assignments, exams, and problems for University

Sort by
Subject
Level

Java Generic Linked Queue Implementation (FIFO)

Classified in Spanish

Written on in English with a size of 8.2 KB

Java LinkedQueue Implementation (Generic)

This document presents the source code for a generic LinkedQueue class in Java. This implementation uses a singly linked list structure, adheres to the FIFO (First-In, First-Out) principle, and implements the Iterable interface.


package org.mp.repaso;

import java.util.Iterator; import java.util.NoSuchElementException;

public class LinkedQueue<T> implements Iterable<T> {

<span style="color:#ba2da2">private int</span> N; <span style="color:rgb(0,132,0)">// Tamaño de la cola</span>
<span style="color:rgb(186,45,162)">private</span> Node&lt;T&gt; primero; <span style="color:rgb(0,132,0)">// Primer elemento de la cola (Head)</span>
<span
... Continue reading "Java Generic Linked Queue Implementation (FIFO)" »

Derivatives and Limits: Rules, Properties, and Common Identities

Classified in Greek

Written on in English with a size of 2.07 KB

Derivadas

derivative rules

der(xa) = a . xa-1

der(a) = 0

(f+-g)' = f' + g'

(a.f)' = a .f'

(f/g)' = ((f'.g-g'.f)/g2)

der( ln(x) ) = 1/x

der( ln|x| ) = 1/x

der( ex) = ex

der( log(x) ) = 1/(x.ln(10))

der( loga(x) ) = 1/(x.ln(a))

common limits

limx->cf(x) = ∞

limx->cg(x) = L

limx->c[f(x) +- g(x)] = ∞

limx->c[f(x) . g(x)] = ∞, L>0

limx->c[f(x) . g(x)] = - ∞, L<0

limx->∞(1 + k/x)x = ek

limx->∞[axn] = ∞, 0

limx->0(1 +x)1/x = e

Trigonometria

basic identities

tan(x) = sin(x)/cos(x)

cot(x) = cos(x)/sin(x)

sec(x) = 1/cos(x)

csc(x) = 1/sin(x)

pythagorean identities

sin(2x) = 2 sin(x)cos(x)

cos(2x) = 1 - 2.sin2(x)

tan(2x) = 2tan(x) / 1-tan2(x)

sin(x) | -1<= y <= 1 | arcsin(x) | - (π/2) <= y <= π/2

cos(x) | -1<= y <= 1 | arccos(

... Continue reading "Derivatives and Limits: Rules, Properties, and Common Identities" »

Common English Phrasal Verbs and Their Meanings

Classified in English

Written on in English with a size of 4.67 KB

Blow away
Impress somebody a lot.
Break down
Stop working because something has broken.
Build up
Create or develop something.
Call off
Cancel something.
Carry on
Continue doing something.
Catch up
Meet up or find out the latest news.
Catch up with
Reach somebody who is ahead.
Check in
Go to a desk at an airport or hotel to say you have arrived.
Check out
Visit somewhere or find out more information about it.
Chill out
Spend time relaxing.
Come across
Find something by chance.
Come up with
Think of or suggest an idea or a plan.
Count on
Be confident you can depend on someone or something.
Cut down on
Reduce the size, amount, or number of something.
Deal with
Solve a problem or do something necessary.
Dress up
Put on special clothes.
End up
Be in a situation or place you did
... Continue reading "Common English Phrasal Verbs and Their Meanings" »

The Great Depression: Causes, Impact, and Economic Theories

Classified in Economy

Written on in English with a size of 2.75 KB

The Great Depression: The Longest and Deepest Economic Downturn in American History

Causes of the Great Depression

In 1929, the prevailing economic theory held that the economy possessed self-correcting mechanisms that would prevent a severe depression. However, the Great Depression defied these expectations.

  • Overproduction: Some economists believed the depression was caused by an excess of goods and services.
  • Lack of Investment Opportunities: Others pointed to a decline in profitable investment opportunities.
  • Technological Innovation: Joseph Schumpeter argued that the failure of entrepreneurs to introduce new products contributed to the depression.
  • Stock Market Crash and Bank Panics: The stock market crash of 1929 and subsequent bank failures exacerbated
... Continue reading "The Great Depression: Causes, Impact, and Economic Theories" »

Extreme Sports, Brain Health, and Tech Innovations

Classified in Physical Education

Written on in English with a size of 2.52 KB

Extreme Sports and Personal Interests

1) I like cycling and camping, despite the fact that I don't do them usually. I would like to try canyoning, kayaking, jet skiing, and rock climbing because they are extreme sports that would probably make me feel really good, and I could relax with them.

The Benefits of Brain Training

2) Brain training can and must improve intellectual capacity. Just as physical exercise is good for the body, this mental training helps the mind to work better. The benefits can last; participating in interactive games helps maintain cognitive functions. Activities such as mind reading may delay or prevent memory loss. Those who took supervised brain training sessions showed lasting improvements in memory, reasoning, and processing... Continue reading "Extreme Sports, Brain Health, and Tech Innovations" »

The Feminist Twist in Angela Carter's Werewolf Tales

Classified in Language

Written on in English with a size of 4.11 KB

Feminism

The origins of the second wave of Feminism can be traced back to the 1970s and the 1980s. A great number of women started writing and publishing books about the so-called notion of “Feminity”. Unlike the first wave of Feminism, which was a suffragist movement in which women were asking the right to vote, the second wave of Feminism goes beyond that. The feminist thinkers of the second wave based their theory on gender stereotyping. They claimed that equality between men and women had not been fully achieved because biological sex was the basis to determine the role a man or a woman must play in society.

Angela Carter's The Werewolf and Company of Wolves

The first reason why we can consider these texts as feminist is the issue of “authority

... Continue reading "The Feminist Twist in Angela Carter's Werewolf Tales" »

The Gold Standard: History, Impact, and Challenges

Classified in Economy

Written on in English with a size of 4.29 KB

The Gold Standard: A Historical Overview

The gold standard is a monetary system in which money is freely convertible into a fixed amount of gold. It evolved from the variety of commodity money there was before the development of paper money and fractional reserves banking. It started to function in 1871. As we know, this century was characterized by globalization and an increase in international trade. Therefore, all trade imbalances between nations were settled with gold. The main priorities of the government were to maintain gold reserves and exchange rate stability.

The Trilemma of the Open Economy

If you had the Gold Standard you had fixed exchange rates and unrestricted capital mobility but Not Monetary Autonomy. As a result, countries always... Continue reading "The Gold Standard: History, Impact, and Challenges" »

The Making of Europe: From Post-War Recovery to Modern Union

Classified in History

Written on in English with a size of 4.93 KB

MAKING OF EUROPE

1. Why Unite Europe?

  • Post-War Devastation: World War II left Europe in ruins, with Germany divided, France in its Fourth Republic, and the Italian monarchy overthrown. Unification offered a path to recovery and stability.
  • Economic Reconstruction: The creation of a common market aimed to boost trade and economic growth for war-torn nations.
  • Preventing Future Conflicts: The trauma of war fostered a desire for lasting peace. Negotiation and cooperation became paramount, particularly between France and Germany.
  • Franco-German Cooperation: The post-war period witnessed unprecedented cooperation between France and Germany, laying the foundation for European integration.
  • Challenges of Integration: Integrating West Germany posed economic
... Continue reading "The Making of Europe: From Post-War Recovery to Modern Union" »

Bioethical Foundations: Human Life, Dignity, and Legal Status

Classified in Philosophy and ethics

Written on in English with a size of 2.93 KB

Core Bioethical Principles

Moral Progress and Scientific Advancement

There is no possible scientific progress without moral progress too.

The Unity of the Human Person

Each human being is a biological, spiritual, and moral unity. What truly differentiates persons from other living beings is our capacity to behave morally.

Primacy of Human Life

The Belmont Report outlines general bioethical principles. A key principle is the primacy of present and real human life above any other interest or value. This also implies the respect for human dignity.

Understanding Human Dignity

The origin and foundation of the duty of absolute respect for human life are to be found in the dignity proper to the person, and not simply in the natural inclination to preserve... Continue reading "Bioethical Foundations: Human Life, Dignity, and Legal Status" »

Understanding Subsidiarity, Common Good, and Participation

Classified in Philosophy and ethics

Written on in English with a size of 2.21 KB

Understanding Key Social Principles

The principle of subsidiarity derives from the Christian notion of society. It also determines the State's obligation to take additional, exceptional, complementary, and supportive action in social sectors or functions when society is unable to achieve its goals independently. It aims to promote and assist society. Main characteristics include:

  1. It is a principle of reason, not of faith, limiting the natural rights of individuals and social groups.
  2. It comprehends both dimensions of social life: the relationship between vertical and horizontal dimensions based on respect for and promotion of social freedom.
  3. It is a grave, immutable principle, universal in time and space.
  4. It self-adapts to each country and circumstance
... Continue reading "Understanding Subsidiarity, Common Good, and Participation" »