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

Sort by
Subject
Level

Indian Summer, Eruptions, and Heckling: True Stories

Classified in Medicine & Health

Written on in English with a size of 3.26 KB

Indian Summer: Ambulance

Key Points:

  1. C A A C A
  2. T: One day, as often happened, his ambulance was called to a hospital in order to transfer a patient elsewhere (line 4).

    F: Mario lay on his stretcher in the sun… (line 9).

    F: The foundation continues its work today thanks to the large number of volunteers… (line 18).

    1. Feel joyful and emotional, as he shed tears of happiness.
    2. On the organization’s Twitter account and then gained wider attention online and in newspapers.
    1. The receiving hospital wasn’t ready to take the patient yet, so Kees offered to take the sailor to a place he wanted to visit.
    2. Foopen was accompanying a patient to fulfill his wish of visiting the Rijksmuseum.
  3. Joy / on the spur of the moment / establish / stretcher / tremendous.

Eruption

Key

... Continue reading "Indian Summer, Eruptions, and Heckling: True Stories" »

C++ & C Programming Solutions: Algorithms & Patterns

Classified in Computers

Written on in English with a size of 5.13 KB

1. Anagram Detection: C++ String Comparison

This C++ program determines if two input strings are anagrams of each other. It achieves this by converting both strings to lowercase, sorting their characters alphabetically, and then comparing the sorted strings. If they are identical, the original strings are considered anagrams.


#include<bits/stdc++.h>
using namespace std;

int main(){
    string s2,s1;
    cin>>s1>>s2;
    transform(s1.begin(),s1.end(),s1.begin(),::tolower);
    transform(s2.begin(),s2.end(),s2.begin(),::tolower);
    sort(s1.begin(),s1.end());
    sort(s2.begin(),s2.end());
    cout<< (s2==s1);
}

2. Array Subarray: C++ Sliding Window Minimum

This C++ program attempts to find the maximum of minimums within... Continue reading "C++ & C Programming Solutions: Algorithms & Patterns" »

English Past Tense, 'Used To,' and Present Continuous

Classified in English

Written on in English with a size of 5.41 KB

Complete the sentences with the verbs below in Past Simple:

walk, enjoy, like, watch, travel, finish, listen

  1. Lucy liked her birthday presents.
  2. Last weekend I walked in the mountains for 2 hours.
  3. We enjoyed the party very much.
  4. Ken listened to his favorite CD yesterday.
  5. My sister studied Maths for an exam.
  6. They traveled to the USA in 2003.
  7. Dad washed his car last weekend.
  8. The film finished at 11:30.

Write the sentences in negative:

  1. Lucy didn't like her birthday presents.
  2. Last weekend I didn't walk in the mountains for 2 hours.
  3. We didn't enjoy the party very much.
  4. Ken didn't listen to his favorite CD yesterday.
  5. My sister didn't study months for German.
  6. They didn't travel to the USA in 2003.
  7. Dad didn't wash his car last weekend.
  8. The film didn't finish at 11:30.
... Continue reading "English Past Tense, 'Used To,' and Present Continuous" »

Electrolyte Imbalances: Sodium, Potassium, Calcium, Magnesium

Classified in Medicine & Health

Written on in English with a size of 3.93 KB

Sodium Imbalance

Sodium: primary cation in ECF

  • Transport through cells by sodium-potassium pump
  • Secreted into mucous and other secretions

Hyponatremia

Plasma sodium below 135 mEq/L

Causes
  • Losses from excessive sweating, vomiting, diarrhea
  • Certain diuretic drugs with low salt diet
  • Hormonal imbalances (low aldosterone, high ADH)
  • Excessive water intake
Effects
  • Low sodium
  • Decreases osmotic pressure in ECF

Hypernatremia

Plasma sodium above 145 mEq/L

Causes
  • Insufficient ADH
  • Loss of thirst mechanism
  • Watery diarrhea
  • Prolonged periods of rapid respiration
  • Ingesting large amounts of sodium without water balance
Effects
  • Weakness, headache
  • Dry, rough mucous membranes
  • Increased thirst
  • Difficulty swallowing
  • Cerebral edema: leads to seizures

Potassium Imbalance

Potassium: primary cation

... Continue reading "Electrolyte Imbalances: Sodium, Potassium, Calcium, Magnesium" »

Plasmids pBR322 and pUC18/19: Cloning Vectors

Classified in Biology

Written on in English with a size of 1.61 KB

Plasmids pBR322 and pUC18/19

pBR322

pBR322, developed in 1977, is a foundational plasmid in molecular biology. Key features include:

  • Size: ~4,361 base pairs (bp)
  • Origin of Replication: Allows independent replication within bacteria.
  • Selection Markers:
    • ampR: Confers ampicillin resistance.
    • tetR: Confers tetracycline resistance.
  • Cloning Sites: Multiple sites for inserting foreign DNA.
  • Applications: Gene cloning, expression, and manipulation.

pUC18/19

pUC18/19, derived from pBR322 in the early 1980s, simplifies cloning. Key features include:

  • Size: ~2,686 bp
  • Origin of Replication: High-copy-number pMB1 ori for increased yield.
  • Selection Marker:
    • lacZ: Beta-galactosidase gene; enables blue/white screening for insert identification.
  • Cloning Sites: Multiple cloning
... Continue reading "Plasmids pBR322 and pUC18/19: Cloning Vectors" »

Tmux Command Reference: Master Your Terminal Sessions

Classified in Technology

Written on in English with a size of 7.51 KB

Tmux Commands Reference

Introduction to Tmux

Tmux (Terminal Multiplexer) is a powerful terminal multiplexer for Unix-like operating systems. It allows you to manage multiple terminal sessions from a single window, enhancing your command-line productivity.

Basic Tmux Commands

DescriptionCommand
Start a new session
$ tmux
Start a new named session
$ tmux new -s myname
Show all sessions
$ tmux ls
Attach to the last session
$ tmux a
Attach to a named session
$ tmux a -t myname
Kill a session by name
$ tmux kill-ses -t myname
Kill all sessions except the current
$ tmux kill-ses -a
Kill all sessions except 'myname'
$ tmux kill-ses -a -t myname
Reload Tmux configuration
$ tmux source-file ~/.tmux.conf
Show global Tmux options
$ tmux show-options -g
Display Tmux server information
$
... Continue reading "Tmux Command Reference: Master Your Terminal Sessions" »

Array and String Algorithms: Core Problem Solutions

Classified in Computers

Written on in English with a size of 6.48 KB


Longest Substring Without Repeating Characters

This problem involves finding the length of the longest substring in a given string that does not contain any repeating characters. A common approach uses a sliding window technique with a Set to efficiently track unique characters.

Strategy:

  • Utilize a Set to store characters within the current window.
  • Iterate through the string with a right pointer, adding characters to the Set.
  • If a duplicate character is encountered, move the left pointer forward, removing characters from the Set, until the duplicate is no longer present.
  • At each step, update the maximum length found.

Java Implementation Snippet

class Solution {
    public int findLongestSubstringWithoutRepeatingCharacter(String str) {
        Set&
... Continue reading "Array and String Algorithms: Core Problem Solutions" »

English Grammar and Vocabulary Guide

Classified in English

Written on in English with a size of 4.73 KB

English Grammar

Verb Tenses

Past Tense Transformations

  • Present Simple (eats/eat) → Past Simple (ate)
  • Don't/Doesn't → Didn't
  • Present Continuous (am, is, are + v ing) → Past Continuous (was, were + v ing)
  • Past Simple (-ed or irregular) → Past Perfect (had + past participle)
  • Present Perfect (have, has + past participle) → Past Perfect
  • Past Perfect (had + past participle) → Past Perfect
  • Past Continuous (was, were + v ing) → Past Perfect Continuous (had + been + v ing)
  • Present Perfect Continuous → Past Perfect Continuous
  • Past Perfect Continuous → Past Perfect Continuous
  • Future: Will + infinitive → Would + infinitive
  • Can → Could + infinitive
  • Must/Have to → Had to + infinitive
  • May → Might + infinitive

Changes in Reported Speech

  • Now → Then
  • Today
... Continue reading "English Grammar and Vocabulary Guide" »

Understanding Financial Formulas and Calculations

Classified in Mathematics

Written on in English with a size of 3.51 KB

Tutorial 1

If you get a positive value times a number,

You need to shift the decimal to the right as many times as the number specified.

If negative, move it to the right.

Simple interest formula = S = FV = P(1 + iK)

Compound interest formula = Sk = P(1 + i)^k

Sn = P(1 + I/T)^n
where I is interest
T is frequency of compounding per year
K is the number of years
N is the total number of periods - K T or TK

Depreciation Formula = Vo or P = Initial value,
Vk = P(1 - d)^k

Tutorial 2

1. 5 years 1 + r = (FV/PV)^(1/5)
(i) r = 10.38%
(ii) r = 10.47%
(iii) r = 10.51%
(iv) r = 10.52%
(v) r = 10.52%
2. 1 + r = (1 + 0.06/12)^8 ∙ (1 + 0.072/12)^4
1 + r = (1.005)^8 ∙ (1.006)^4
1 + r = (1.0407) ∙ (1.0242) = 1.06591
r = 6.59%

For an initial outlay of $1000, the net return is

... Continue reading "Understanding Financial Formulas and Calculations" »

Phonetics and Phonology: Distinctive Features and Vowel Sounds

Classified in English

Written on in English with a size of 2.79 KB

Distinctive Feature Theory

Distinctive Feature Theory challenges Phoneme Theory (PT) by focusing on the features that compose phonemes, rather than the phonemes themselves. This approach questions the validity of the phoneme concept, arguing that speech is not simply a series of discrete sounds.

Natural Class: A set of sounds sharing phonetic features, affected by the same environment, and having the same effect on surrounding sounds.

Major Class Features

  • Vowels: [+SYLLABIC], [+SONORANT], [-CONSONANTAL] - form the syllable nucleus.
  • Glides: [-SYLLABIC], [+SONORANT], [-CONSONANTAL].
  • Sonorant Consonants (nasals and liquids): [+/-SYLLABIC], [+SONORANT], [+CONSONANTAL].
  • Obstruents: [-SYLLABIC], [-SONORANT], [+CONSONANTAL].

Consonant Features

  • Voice: [+/-VOICE]
... Continue reading "Phonetics and Phonology: Distinctive Features and Vowel Sounds" »