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

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

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

Mastering Passive Voice in English: Examples and Key Business Vocabulary

Classified in Spanish

Written on in English with a size of 4.17 KB

Mastering the Passive Voice in English

Present Simple

Active: This singer writes many songs.

Passive: Many songs are written by this singer.

Past Simple

Active: This singer wrote many songs.

Passive: Many songs were written by this singer.

Future Simple

Active: This singer will write many songs.

Passive: Many songs will be written by this singer.

Present Continuous

Active: This singer is writing many songs.

Passive: Many songs are being written by this singer.

Past Continuous

Active: This singer was writing many songs.

Passive: Many songs were being written by this singer.

Present Perfect Simple

Active: This singer has written many songs.

Passive: Many songs have been written by this singer.

Past Perfect Simple

Active: This singer had written many songs.

Passive:... Continue reading "Mastering Passive Voice in English: Examples and Key Business Vocabulary" »

English Grammar Essentials & Vocabulary Lists

Classified in Spanish

Written on in English with a size of 5.06 KB

English Passive Voice Examples

Transforming active voice sentences to passive voice:

  • Open → is opened
  • Is opening → is being opened
  • Has opened → has been opened
  • Opened → was opened
  • Was opening → was being opened
  • Had opened → had been opened
  • Will open → will be opened
  • Is going to open → is going to be opened

Conditional Sentence Structures

  • First Conditional (1º): If / Unless / As long as + Present Simple, ... Will + Infinitive. (e.g., If I cook..., I will eat...)
  • Second Conditional (2º): If + Past Simple, ... Would + Infinitive. (e.g., If I cooked..., I would eat...)
  • Third Conditional (3º): If + Past Perfect, ... Would Have + Past Participle. (e.g., If I had cooked..., I would have eaten...)

Using Gerunds (-ing form)

Use a gerund:

  • When the
... Continue reading "English Grammar Essentials & Vocabulary Lists" »

Spain's Government, Cold War History & Global Agencies

Classified in Spanish

Written on in English with a size of 3.09 KB

The Spanish Political System

What is a constitution?

The constitution is the fundamental law that controls the Spanish government.

What are the powers of the state?

The powers of the state are divided into three branches:

  • Legislative Branch: Makes the laws.
  • Executive Branch: Enforces the laws.
  • Judicial Branch: Interprets laws and judges those who violate them.

What is the political system of Spain?

Spain has a monarch (a king or queen) who is the head of state. The monarch's role is mainly ceremonial, but they also represent the country internationally.

The Cold War and Global Conflicts

What was the Cold War and when did it end?

The Cold War was an ideological confrontation from 1945 until the dissolution of the USSR. The United States led the Western... Continue reading "Spain's Government, Cold War History & Global Agencies" »