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

Sort by
Subject
Level

Knapsack Problem Optimization: LP Relaxation, Greedy, and Local Search Implementation

Classified in Spanish

Written on in English with a size of 4.42 KB

Knapsack Problem Solution Methods

This implementation demonstrates several methods for solving the Knapsack Problem, including Linear Programming (LP) relaxation, the Dantzig heuristic, the standard Greedy algorithm, and a Local Search approach (Exchange Problem).

1. Initialization and Data Loading


uses "mmsystem"

declarations
    n, cap: integer
    archivo_datos = "gen300_5.txt"
end-declarations

fopen(archivo_datos, F_INPUT)
readln(n)
readln(cap)

declarations
    objetos = 1..n
    p, w, candidato: array(objetos) of integer
    t1: real
    x: array(objetos) of mpvar
    xp: array(objetos) of integer
    g: array(objetos) of real
    sol: array(objetos) of integer
    zgreedy, carga, final: integer
    ind0: array(objetos) of integer
... Continue reading "Knapsack Problem Optimization: LP Relaxation, Greedy, and Local Search Implementation" »

Mastering Reported Speech and English Grammar Essentials

Classified in Spanish

Written on in English with a size of 3.38 KB

Reported Speech and English Grammar Essentials

Direct and Reported Speech

Direct SpeechReported Speech
Present simplePast simple
Present continuousPast continuous
Present perfect simplePast perfect simple
Past simplePast perfect simple
Past perfect simplePast perfect simple
am/is/are going towas/were going to
willwould
cancould
musthad to

Time and Place Changes in Reported Speech

Direct SpeechReported Speech
nowthen, at that time
todaythat day
tonightthat night
this (morning/week/month/year)that (morning/week/month/year)
yesterdaythe day before
last (week/month/year)the (week/month/year) before/(two days/a year) ago/(two days/a year) earlier
tomorrowthe next/following day
next (week/month/year)the next/following (week/month/year)

Question Words in Reported Speech

  • What
... Continue reading "Mastering Reported Speech and English Grammar Essentials" »

Essential English Vocabulary & Grammar: Simple Past & More

Classified in Spanish

Written on in English with a size of 3.7 KB

Essential English Vocabulary

  • Supportive: Apoyo
  • Helpful: Servicial
  • Outgoing: Extrovertida
  • Extroverted: Extrovertido
  • Truthful: Veraz
  • Sincere: Sincero
  • Enthusiastic: Entusiasta
  • Energetic: Energético
  • Dependable: Confiable
  • Reliable: De confianza
  • Responsible: Responsable
  • Mature: Maduro
  • Cruel: Cruel
  • Mean: Media
  • Optimistic: Optimista
  • Positive: Positivo
  • Sympathetic: Simpático
  • Kind: Tipo
  • Bitter: Amargo
  • Angry: Enojado
  • Eager: Ansioso
  • Willing: Complaciente
  • Dedicated: Dedicado
  • Determined: Determinado

More Useful Words

  • Bully: Matón
  • Victims: Víctimas
  • Star: Estrella
  • Founder: Fundador
  • Get involved: Involucrarse
  • Get things done: Terminar las cosas
  • Get better: Mejorar
  • Get the feeling: Da la sensación
  • Get permission: Obtener permiso
  • Get used to: Acostumbrarse a
  • Make an effort: Haz un esfuerzo
  • Make
... Continue reading "Essential English Vocabulary & Grammar: Simple Past & More" »

Balancing Teen Screen Time and Reading Habits

Classified in Spanish

Written on in English with a size of 2.96 KB

Balancing Digital Media and Reading Habits

In today's world, many teenagers have access to the internet; therefore, they have a chance to watch free videos and films online. (1) As it is a passive activity, it is very likely that they spend much more time watching videos than reading. (2)

The Risks of Passive Consumption

While watching an online film or videos is not a bad activity per se, doing it all the time is. (3) This is precisely what teachers and parents fear: teenagers becoming just passive consumers of any junk videos or worthless information that is presented online. They point out that good habits, such as reading and acquiring useful information for their future jobs, are being lost. (4)

Finding a Healthy Balance

However, if parents... Continue reading "Balancing Teen Screen Time and Reading Habits" »

Effective Strategies for Environmental Protection

Classified in Spanish

Written on in English with a size of 2.27 KB

Environmental Protection: An Opinion Essay

How can we help to protect the environment?

Current Environmental Challenges

There are many problems related to the environment, such as excessive pollution, deforestation, and the exhaustion of natural resources, which have had devastating consequences in the last decades. In fact, many species are in danger of extinction, and others have already disappeared.

Proposed Solutions

There are many measures that we can take in our daily life to change this situation:

  • Recycle, reuse, and reduce: Minimize the consumption of unnecessary items.
  • Governmental action: Pass laws to regulate environmental impact and prevent further pollution.
  • Stricter enforcement: Control fires and impose severe punishments for those who
... Continue reading "Effective Strategies for Environmental Protection" »

English Language Study Notes: Vocabulary and Grammar

Classified in Spanish

Written on in English with a size of 4.58 KB

VOCABULARY.

Right: derecho, derecha, correcto. To portray: rematar. Plot: argumento. Distrut: desconfianza. Host: anfitrion. Sucess: exito. Beyond; mas alla de. Hope: esperanza. Pride: orgullo. Wise: sabio. As well as: asi como. Strength: fuerza. To miss: echar de menos, perder bus, fallar. Coach: entrenador. Resembled: parecerse. To start: protagonizar. Cast: reparto. Viewers: espectador. To be set: estar situada. Box-office hit: taquillazo. To shoot: disparar / rodar pelicula. To notive: darse cuenta. Illness: enfermedad. Rough: aspero. Marriage: matrimonio. To bocher, to disturbe: molestar. To spot: localizar. Scruffy: desaliñado. To rush:  darse prisa. Imedicated: sin informacion. Hopeful: esperanzado. Hopeless: sin esperanza. Useful:... Continue reading "English Language Study Notes: Vocabulary and Grammar" »

English-Spanish Vocabulary and Idioms

Classified in Spanish

Written on in English with a size of 3.79 KB

Appeal to - gustar a

Manufacture - producir

Purchase - adquirir

Target - estar dirigido a

Jumble sale - mercadillo

Use up - utilizar todo

Dump - vertedero

Waste - desperdicio

Foolish - insensato

Harmful - dañino

Hazardous - peligroso

Knowledgeable - culto

Environmentally friendly - ecológico

Rubbish dump - vertedero

Bring about - dar lugar a

Get across - transmitir

Point out - remarcar

Put off - aplazar

Fattening - que engorda

Fresh - fresco

Cut out - eliminar

Eat out - salir a cenar

Give up - dejar

Go on a diet - ponerse a régimen

Stick to - seguir

Ban on - prohibición de

Delighted - encantado

Dissatisfied - descontentado

Jog - estímulo

Peckish - con ganas de comer algo

Scent - satisfecho

Sprint - esprint

Stare - mirar fijamente

Starving - hambriento

Well built - fornido

Sight

... Continue reading "English-Spanish Vocabulary and Idioms" »

Cálculo de Subredes Clase C y Fundamentos de Sistemas Operativos

Classified in Spanish

Written on in English with a size of 7.77 KB

Ejercicios de Subredes Clase C

1. Subnetting con Máscara 240 (/28)

La máscara de subred 255.255.255.240 corresponde a /28 (4 bits de subred, 4 bits de host).

Representación binaria del último octeto: 11110000.

Tabla de Subredes /28 (Red 192.168.27.0)

Índice (Decimal)Bits de Subred | Bits de HostDirección de SubredPrimer Host UtilizableÚltimo Host UtilizableDirección de Broadcast
00000 | 0000192.168.27.0192.168.27.1192.168.27.14192.168.27.15
160001 | 0000192.168.27.16192.168.27.17192.168.27.30192.168.27.31
320010 | 0000192.168.27.32192.168.27.33192.168.27.46192.168.27.47
480011 | 0000192.168.27.48192.168.27.49192.168.27.62192.168.27.63
640100 | 0000192.168.27.64192.168.27.65192.168.27.78192.168.27.79
800101 | 0000192.168.27.80192.168.27.81192.168.
... Continue reading "Cálculo de Subredes Clase C y Fundamentos de Sistemas Operativos" »

The Impact of Advertising and English Verb Tenses

Classified in Spanish

Written on in English with a size of 3.59 KB

The Negative Impact of Advertising

Everywhere we look, there are adverts. We are surrounded by companies trying to convince us to buy things. As far as I am concerned, advertising can be very harmful to the public.

Every year, huge amounts of money are spent on advertising. If an advert features a popular celebrity, people are often convinced to buy products they do not need, even when they lack the funds. Ads can also make people feel unhappy with their lives because they cannot afford the advertised products. I believe it would be better if companies spent less on advertising and reduced their prices instead. It seems to me that if prices were lower, consumers would buy more.

To sum up, advertising is a waste of money for companies and causes... Continue reading "The Impact of Advertising and English Verb Tenses" »

Essential Medical Spanish Phrases for Emergency Situations

Classified in Spanish

Written on in English with a size of 110.14 KB

Z


9k=


Emergency Assessment Questions

  • Is anyone else ill, injured, or hurt? - ¿Hay alguien más enfermo, lesionado o herido?
  • Were you alone here? - ¿Estaba usted solo aquí?
  • Are you a family member or a friend? - ¿Eres miembro de la familia o amigo?
  • Can you translate for me? - ¿Puede traducir?
  • Can you tell me what happened? - ¿Puede decirme qué pasó?
  • Can you answer a few questions for me? - ¿Puedes responderme a algunas preguntas?
  • May I call someone for you? - ¿Puedo llamar a alguien por usted?

Symptom and Condition Inquiries

  • What's wrong? - ¿Qué te pasa? ¿Cuál es tu problema?
  • What's bothering you the most? - ¿Qué le molesta? (¿Qué es lo que más le molesta?)
  • What else? - ¿Qué más?
  • What happens? - ¿Qué sucede?
  • Can you tell me how you are
... Continue reading "Essential Medical Spanish Phrases for Emergency Situations" »