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

Sort by
Subject
Level

School Memories: From Basketball to Gymnastics

Classified in English

Written on in English with a size of 3.32 KB

School Break Time Memories

During school breaks, my friends and I used to play basketball. We formed teams, and the losing team would buy Lay's for the winning team. I used to play basketball, but I stopped when I broke my finger. Afterward, the school bought a thick and long rope, and I started playing jump rope with my friends. We all got together, and one by one, we started jumping. It was a lot of fun, but actually, I think I'm afraid of it now. I also used to play hide-and-seek with my friends, but I didn't like it much because I felt like time was passing, and the break was ending very quickly. When I entered high school, I stopped playing during breaks and only ate breakfast with my friends. We would sit on a bench and just talk.

A Lost

... Continue reading "School Memories: From Basketball to Gymnastics" »

Software Design Principles and Patterns

Classified in Computers

Written on in English with a size of 4.98 MB

Lecture 2: Dynamic Dispatch and Interfaces

  • Dynamic Dispatch: The process of selecting which implementation of a polymorphic operation to call at runtime.
  • Interface: Calling a method that is not in the interface will cause a compilation error.

Lecture 3: N/A

Lecture 4: Method Contracts, Exceptions, and Unit Testing

  • Method Contract: Should define pre/post conditions and exceptional behavior. The client is to blame if the precondition is not met, and the service is to blame if the postcondition is not met. Exceptional behavior specifies what the code will do if a precondition is violated.
  • Exception: Runtime exception (unchecked) and IO exception (checked). The IO exception must be caught; otherwise, the code won't compile.
  • Unit Test: Test boundary
... Continue reading "Software Design Principles and Patterns" »

Language vs Dialect: Power Dynamics and Societal Influence

Classified in Social sciences

Written on in English with a size of 2.3 KB

Regarding the difference between a language and a dialect can be confusing. A language is a mental phenomenon, the language lives in the mind because it is a cognitive ability. However, a dialect is a certain type of linguistic variety. It is the way of speaking of a community which is a bit different from the standard one. One problem is dialectal continuum:

The distinction is very broad. If we ask how many languages there are, we will not have an exact answer because there are over 4000 and 6000 languages. It is difficult to say which is a language or which is not. The word 'language' is a concept more political than scientific, the decision in the end is political. For example, the Swedes, Danish, and Norwegians speak highly similar linguistic... Continue reading "Language vs Dialect: Power Dynamics and Societal Influence" »

Mesopotamian Civilization: Society, Economy, Religion

Classified in History

Written on in English with a size of 2.95 KB

The Rise of Mesopotamian Civilization

On the banks of the Tigris and Euphrates rivers, the main urban settlements that were to play a leading role in the three millennia of Mesopotamian history emerged. The periodic overflowing of their banks irrigated and enriched the surrounding land, allowing intensive agricultural exploitation. This favored the appearance of stable settlements and their development. Cities such as Uruk, Ur, Lagash, Assur, Mari, and Babylon, among many others, arose, governed independently from a temple-palace.

Mesopotamian Society and Governance

The temple-palace organized the economy and held the political and military monopoly, as it was where the production and surplus from their economic activities were stored. Society... Continue reading "Mesopotamian Civilization: Society, Economy, Religion" »

C Programming Examples: Code Snippets and Explanations

Classified in Computers

Written on in English with a size of 3.41 KB

C Programming Examples

Here are several C programming examples:

Vector Operations

#include <stdio.h>

void leVetor (int v [] , int tam );
int prodEscalar (int v1 [] , int v2 [] , int tam );

int main (void) {
    int v1 [ DIM ], int v2 [ DIM ];
    int i;
    int prod ;

    leVetor (v1 , DIM );
    leVetor (v2 , DIM );
    prod = prodEscalar (v1 , v2 , DIM );
    printf ("%d\n", prod );
    return 0;
}

void leVetor (int v [] , int tam ) {
    /* Completar */
}

int prodEscalar (int v1 [] , int v2 [] , int tam ) {
    /* Completar */
}

Random Number Generation

#include <stdio.h>
#include <time.h>
#include <stdlib.h>

#define VEZES 10

int main (void) {
    int i , j , k;
    double r;

    srand ( time ( NULL )); /* inicializa
... Continue reading "C Programming Examples: Code Snippets and Explanations" »

Indifference Curves, Budget Lines, and Consumer Equilibrium

Classified in Economy

Written on in English with a size of 562.89 KB

Theory of Indifference Curves

Developed by Prof. Thomas S. Alvarez

ECONOMICS AND INDUSTRIAL ORGANIZATION I

Indifference Curves

The table below shows points in four different indifference curves for a consumer.
(a) Draw the indifference curves I, II, III, and IV on the same set of axes.
(b) What are indifference curves?

I II III IV
Qx Qy Qx Qy Qx Qy Qx Qy
2 13 3 12 5 12 7 12
3 6 4 8 5.5 9 8 9
4 4.5 5 6.3 6.3 8.3 9 7
5 3.5 6 5 7 7 10 6.3
6 3 7 4.4 8 6 11 5.7
7 2.7 8 4 9 5.4 12 5.3

(a)

Image

(b) Indifference curves graphically display the tastes and preferences of consumers (in the analysis of utility, the total utility curve introduced consumer tastes). The consumer is indifferent to all the various combinations of X and Y on the same indifference curve... Continue reading "Indifference Curves, Budget Lines, and Consumer Equilibrium" »

Foundations of Data Analytics, Databases, and Statistics

Classified in Mathematics

Written on in English with a size of 2.23 MB

Introduction to Data Analytics

Types of Data Analytics

  • Descriptive: Analyzes past trends.
  • Predictive: Applies past trends to current data to understand the future.
  • Prescriptive: Suggests actions and outlines potential impacts.

Project Stages

  1. Problem Specification:
    1. Understand the Problem Statement.
    2. Define the Project Scope.
  2. Data Gathering & Preprocessing:
    1. Define a system for data collection.
    2. Clean data with data processing.
  3. Descriptive Analytics:
    1. Perform Exploratory Data Analysis (EDA).
    2. Get a basic understanding of the dataset.
    3. Answer initial assumptions about the data.
  4. Machine Learning:
    1. Apply correct ML models depending on the scope/nature of the data and project.
    2. Train the ML model to assess its performance.
  5. Deployment:
    1. Consult with project stakeholders on
... Continue reading "Foundations of Data Analytics, Databases, and Statistics" »

Key Legal Concepts: Torts, Dismissal & Offenses

Classified in Law & Jurisprudence

Written on in English with a size of 4.89 KB

Legal Comparisons

Negligence vs. Intentional Tort

Negligence and intentional torts differ primarily in the mindset of the individual causing harm. Negligence occurs when someone fails to exercise reasonable care, often resulting in unintentional harm. In contrast, intentional torts, like assault or battery, involve deliberate actions intended to harm another person.

Strict Liability vs. Negligence

Strict liability and negligence share the goal of holding individuals accountable for harm caused, but their requirements for proving fault differ. Negligence requires proving that the defendant failed to exercise reasonable care, while strict liability does not require any proof of fault.

Defamation vs. Nuisance

Defamation and nuisance are distinct torts... Continue reading "Key Legal Concepts: Torts, Dismissal & Offenses" »

19th-20th Century Urban Transformations in Madrid

Classified in Geography

Written on in English with a size of 3.28 KB

Disentailment (First Half 19th Century)

Historical Context

Beginning in 1836, the disentailment was driven by Juan Álvarez Mendizábal, Minister of Finance in the liberal government. This reform aimed to modernize the Spanish economy and reduce the power of the Church.

Objectives

  • Debt Reduction: Obtain revenue to reduce the massive public debt.
  • Agrarian Modernization: Modernize agriculture by transferring lands from dead hands to private owners for exploitation.
  • Weakening Church Power: Reduce the economic and social power of the Catholic Church, which owned vast tracts of land.

Consequences

  • Economic: Public debt was reduced and state resources increased, but land distribution favored the wealthy, worsening inequalities.
  • Social: Many peasants and small
... Continue reading "19th-20th Century Urban Transformations in Madrid" »

Key Concepts in Human Anatomy and Physiology

Classified in Biology

Written on in English with a size of 4.6 KB

Perineum Anatomy

Perineum Structures

The perineum is a diamond-shaped space between the pubic symphysis (anteriorly), the coccyx (posteriorly), and the ischial tuberosities (laterally), lying just inferior to the pelvic diaphragm (levator ani and coccygeus).

It is divided transversely into two triangles:

  • The anterior is the urogenital triangle, which includes the external genitals.
  • The posterior is the anal triangle, which contains the anus.

The perineum is also divided into superficial and deep layers, with some muscles common to men and women.

Muscles of the Perineum and Pelvic Floor

Muscles making up the Urogenital and Anal (Pelvic) triangles/diaphragms include:

  • Urogenital diaphragm: Superficial and intermediate planes
  • Sphincters: Internal and external
... Continue reading "Key Concepts in Human Anatomy and Physiology" »