Transition to new format

This commit is contained in:
Mark 2023-05-25 21:44:07 -07:00
parent 3d73626bc4
commit 83b273fbd3
29 changed files with 483 additions and 471 deletions

View File

@ -5,18 +5,17 @@
singlenumbering
]{../../resources/ormc_handout}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{multicol}
\uptitlel{Advanced 1A}
\uptitler{Spring 2022}
\title{Intro to Cryptography}
\subtitle{Prepared by Mark on \today{}}
\begin{document}
\maketitle
<Advanced 1A>
<Spring 2022>
{Intro to Cryptography}
{Prepared by Mark on \today{}}
\input{parts/part 1}
\input{parts/part 2}

View File

@ -6,16 +6,17 @@
\input{tikxset.tex}
\uptitlel{Advanced 2}
\uptitler{Winter 2022}
\title{Finite Automata}
\subtitle{Prepared by Mark and Nikita on \today{}}
\begin{document}
\maketitle
<Advanced 2>
<Winter 2022>
{Finite Automata}
{Prepared by Mark and Nikita on \today}
\input{parts/0 DFA.tex}
\input{parts/1 regular.tex}
\input{parts/0 DFA.tex}
\input{parts/1 regular.tex}
\end{document}

View File

@ -8,15 +8,14 @@
% for \coloneqq, a centered :=
\usepackage{mathtools}
\begin{document}
\maketitle
<Advanced 2>
<Spring 2023>
{Definable Sets}
{
Prepared by Mark on \today
}
\uptitlel{Advanced 2}
\uptitler{Spring 2023}
\title{Definable Sets}
\subtitle{Prepared by Mark on \today{}}
\begin{document}
\maketitle
\input{parts/0 logic.tex}
\input{parts/1 structures.tex}

View File

@ -1,22 +1,23 @@
% use [nosolutions] flag to hide solutions.
% use [solutions] flag to show solutions.
\documentclass[
solutions
solutions,
singlenumbering
]{../../resources/ormc_handout}
\usepackage{tikz}
\uptitlel{Advanced 2}
\uptitler{Fall 2022}
\title{Error-Correcting Codes}
\subtitle{
Based on a handout by Yingkun Li \\
Revised by Mark on \today
}
\begin{document}
\maketitle
<Advanced 2>
<Fall 2022>
{Error-Correcting Codes}
{
Based on a handout by Yingkun Li \\
Revised by Mark on \today
}
\input{parts/00 detection}
\input{parts/01 correction}

View File

@ -1,13 +1,10 @@
% use [nosolutions] flag to hide solutions.
% use [solutions] flag to show solutions.
\documentclass[
solutions,
singlenumbering,
nosolutions
]{../../resources/ormc_handout}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{multicol}
\usepackage{tikz}
\usepackage{graphicx}
@ -17,20 +14,19 @@
\newcommand{\qgt}{\stackrel{?}{>}}
\newcommand{\qlt}{\stackrel{?}{<}}
\uptitlel{Advanced 2}
\uptitler{Fall 2022}
\title{Euler's Number}
\subtitle{
By Oleg Gleizer and Olga Radko. \\
Prepared by Mark on \today
}
\begin{document}
\maketitle
<Advanced 2>
<Fall 2022>
{Euler's Number}
{
By Oleg Gleizer and Olga Radko. \\
Prepared by Mark on \today
}
\paragraph{}
The goal of this mini-course is to construct Euler's number, one of the most important constants in mathematics, physics, economics, and finance. Make sure you fully understand all definitions before trying to solve problems that use them.
\section{Compound Interest}

View File

@ -4,17 +4,17 @@
solutions
]{../../resources/ormc_handout}
\input{tikxset}
\uptitlel{Advanced 2}
\uptitler{Fall 2022}
\title{Algorithms on Graphs: Flow}
\subtitle{Prepared by Mark on \today}
\begin{document}
\maketitle
<Advanced 2>
<Fall 2022>
{Algorithms on Graphs: Flow}
{Prepared by Mark on \today}
\input{parts/00 review}
\input{parts/01 flow}

View File

@ -6,16 +6,14 @@
\usepackage{tikz}
\uptitlel{Advanced 2}
\uptitler{Fall 2022}
\title{Group Theory}
\subtitle{Prepared by Mark on \today}
\begin{document}
\maketitle
<Advanced 2>
<Fall 2022>
{Group Theory}
{
Prepared by Mark on \today
}
\input{parts/00 review}
\input{parts/01 groups}

View File

@ -29,16 +29,14 @@
% Notice that I a b = 1 a b!
\uptitlel{Advanced 2}
\uptitler{Fall 2022}
\title{Lambda Calculus}
\subtitle{Prepared by Mark on \today{}}
\begin{document}
\maketitle
<Advanced 2>
<Fall 2022>
{Lambda Calculus}
{
Prepared by Mark on \today
}
\begin{minipage}{8cm}
Beware of the Turing tar-pit in which everything is possible but nothing of interest is easy.

View File

@ -6,23 +6,21 @@
]{../../resources/ormc_handout}
\usepackage{ifthen}
%\usepackage{lua-visual-debug}
\renewcommand{\arraystretch}{1.2}
\uptitlel{Advanced 2}
\uptitler{Spring 2023}
\title{Lattices}
\subtitle{Prepared by Mark on \today}
\begin{document}
\maketitle
<Advanced 2>
<Spring 2023>
{Lattices}
{
Prepared by Mark on \today \\
}
\input{parts/0 intro.tex}
\input{parts/1 minkowski.tex}
\input{parts/2 orchard.tex}
\end{document}

View File

@ -2,7 +2,7 @@
% use [solutions] flag to show solutions.
\documentclass[
solutions,
nowarning,
hidewarning,
%singlenumbering
]{../../resources/ormc_handout}
@ -20,16 +20,15 @@
}
\input{tikzset}
\uptitlel{Advanced 2}
\uptitler{Spring 2023}
\title{Linear Algebra 101}
\subtitle{Prepared by Mark on \today}
\begin{document}
\maketitle
<Advanced 2>
<Spring 2023>
{Linear Algebra 101}
{
Prepared by Mark on \today \\
}
\input{parts/0 notation}
\input{parts/1 vectors}

View File

@ -63,18 +63,21 @@
\newcommand{\qed}{\(\blacksquare\)}
\uptitlel{Advanced 2}
\uptitler{Spring 2023}
\title{To Mock a Mockingbird}
\subtitle{
Prepared by Mark on \today \\
Based on a book of the same name.
}
\begin{document}
\maketitle
<Advanced 2>
<Spring 2023>
{To Mock a Mockingbird}
{
Prepared by Mark on \today \\
Based on a book of the same name.
}
\input{parts/00 intro}
\input{parts/01 tmam}
\input{parts/02 kestrel}
\end{document}

View File

@ -7,6 +7,11 @@
\graphicspath{ {./images/} }
\uptitlel{Advanced 2}
\uptitler{Winter 2022}
\title{Origami}
\subtitle{Prepared by everyone on \today}
\begin{document}
\maketitle

View File

@ -8,16 +8,14 @@
\usepackage{amssymb}
\usepackage{tikz}
\uptitlel{Advanced 2}
\uptitler{Winter 2022}
\title{Pidgeonhole Problems}
\subtitle{Prepared by Mark on \today}
\begin{document}
\maketitle
<Advanced 2>
<Winter 2023>
{Pidgeonhole Problems}
{Prepared by Mark on \today}
\vspace{3ex}
\problem{}

View File

@ -8,17 +8,17 @@
\usepackage{tkz-graph}
\uptitlel{Intermediate 2}
\uptitler{ORMC Summer Sessions}
\title{An Introduction to Graph Theory}
\subtitle{
Prepared by Mark on \today \\
Based on a handout by Oleg Gleizer
}
\begin{document}
\maketitle
<Intermediate 2>
<ORMC Summer Sessions>
{An Introduction to Graph Theory}
{
Prepared by Mark on \today \\
Based on a handout by Oleg Gleizer
}
\section{Graphs}

View File

@ -14,14 +14,14 @@
}
}
\uptitlel{Intermediate 2}
\uptitler{ORMC Summer Sessions}
\title{Combinatorics}
\subtitle{Prepared by Mark on \today}
\begin{document}
\maketitle
<Intermediate 2>
<ORMC Summer Sessions>
{Combinatorics}
{Prepared by Mark on \today}
\section{Getting started}
@ -241,7 +241,7 @@
\problem{}
A stressed-out student consumes at least one espresso every day of a particular year, drinking $500$ overall. Prove that on some consecutive sequence of whole days the student drinks exactly $100$ espressos.
\note<Warning>{This problem is significantly harder than anything else in the handout.}
\note[Warning]{This problem is significantly harder than anything else in the handout.}
\vfill

View File

@ -8,26 +8,27 @@
\usepackage{tkz-graph}
\uptitlel{Intermediate 2}
\uptitler{ORMC Summer Sessions}
\title{Graph Theory and Instant Insanity}
\subtitle{
Prepared by Mark on \today \\
Based on a handout by Oleg Gleizer
}
\begin{document}
\maketitle
<Intermediate 2>
<ORMC Summer Sessions>
{Graph Theory and Instant Insanity}
{
Prepared by Mark on \today \\
Based on a handout by Oleg Gleizer
}
\section{Instant Insanity}
\section{Instant Insanity}
The puzzle you have in front of you is called {\it Instant Insanity}.
The puzzle you have in front of you is called {\it Instant Insanity}.
It consists of four cubes, with faces colored with four colors:
red, blue, green, and white. The objective is to put the cubes in a row
so that each side, front, back, upper, and lower,
of the row shows each of the four colors. \\
It consists of four cubes, with faces colored with four colors:
red, blue, green, and white. The objective is to put the cubes in a row
so that each side, front, back, upper, and lower,
of the row shows each of the four colors. \\
\begin{center}
\includegraphics[width=2.2in]

View File

@ -5,16 +5,17 @@
]{../../resources/ormc_handout}
\uptitlel{Intermediate 2}
\uptitler{ORMC Summer Sessions}
\title{Newton's Laws of Motion}
\subtitle{
Prepared by Mark on \today \\
Based on a handout by Oleg Gleizer
}
\begin{document}
\maketitle
<Intermediate 2>
<ORMC Summer Sessions>
{Newton's Laws of Motion}
{
Prepared by Mark on \today \\
Based on a handout by Oleg Gleizer
}
\section{Newton's First Law}
If the net force acting on an object is zero, the velocity of that object does not change. \\

View File

@ -11,331 +11,334 @@
\ensuremath{\P{\text{#1}}}
}
\uptitlel{Intermediate 2}
\uptitler{ORMC Summer Sessions}
\title{Probability}
\subtitle{
Prepared by Mark on \today \\
Based on a handout by Oleg Gleizer
}
\begin{document}
\maketitle
<Intermediate 2>
<ORMC Summer Sessions>
{Probability}
{
Prepared by Mark on \today \\
Based on a handout by Oleg Gleizer
}
\problem{}
A Zoo manager thinks of a way
to set up a new pavilion.
He has 7 different plants
and 12 different animals. \\
\begin{itemize}
\item How many ways are there to choose two animals and three plants?
\problem{}
A Zoo manager thinks of a way
to set up a new pavilion.
He has 7 different plants
and 12 different animals. \\
\begin{itemize}
\item How many ways are there to choose two animals and three plants?
\vfill
\item The manager finds that he only has 5 exhibits available. How many different sets of animals can he choose, if only one can be in each exhibit time?
\vfill
\end{itemize}
\problem{}
How many different 7-symbol license plates are possible if the first three symbols are letters and the remaining four are digits 0-9? \\
\hint{Symbols can repeat, but letters must be uppercase}
\vfill
\item The manager finds that he only has 5 exhibits available. How many different sets of animals can he choose, if only one can be in each exhibit time?
\pagebreak
\problem{}
There are two plates on a table.
One plate has 10 identical candies,
the other has 8 different fruits. \\
\begin{itemize}
\item How many ways are there to choose one candy?
\vfill
\item How many ways are there to choose seven candies?
\vfill
\item How many ways are there to choose five fruits?
\vfill
\item How many ways are there to choose three candies and six fruits?
\vfill
\item Gregory chooses two fruits and two candies, and lines up the four objects on the table. In how many ways can he do it?
\vfill
\item Gregory chooses five fruits and seven candies, and lines up the twelve objects on the table. In how many ways can he do it?
\vfill
\end{itemize}
\pagebreak
\vspace{190pt}
\pagebreak
\begin{center}
\section{Probability}
\end{center}
\vspace{10pt}
A \textit{probability}, also known as a \textit{chance}, is a number showing how likely some event is to happen. Let us call the event $X$. Then the probability of $X$ taking place is
$$
\P{X} = \frac{
\text{The number of the outcomes such that $X$ happens.}
}{
\text{The number of all the possible outcomes.}
}
$$
Note that by definition, $0 \leq P(X) \leq 1$. \\
In some of the following problems, we will be flipping a coin. Let us use $H$ to represent the event of the coin landing heads, and $T$, the event of the coin landing tails.
\problem{}
Compute each of the following:
\begin{enumerate}
\item \Pt{Rolling a six-sided die and getting 2}
\item \Pt{Flipping a coin twice and getting the sequence HH}
\item \Pt{Flipping a coin twice and getting one head and one tail in any order}
\item \Pt{Rolling two six-sided dice and getting a sum of 5}
\end{enumerate}
\vfill
\end{itemize}
\pagebreak
\problem{}
How many different 7-symbol license plates are possible if the first three symbols are letters and the remaining four are digits 0-9? \\
\hint{Symbols can repeat, but letters must be uppercase}
\vfill
Some parts of the previous problem involve repeated trials: two dice, or two coins. You may have solved these by listing out all the possible outcomes. Though this simple approach works for small problems, it isn't particularly useful for larger ones: ten coin flips create 1024 possible outcomes, and ten dice rolls, 60466174.
\pagebreak
\medskip
\problem{}
There are two plates on a table.
One plate has 10 identical candies,
the other has 8 different fruits. \\
A better way to think about repeated trials is as a ``tree,'' where each outcome represents a path. The following tree represents two coin flips, and the four paths down it (from left to right) correspond to the four possible outcomes: HH, HT, TH, TT.
\begin{itemize}
\item How many ways are there to choose one candy?
\vfill
\item How many ways are there to choose seven candies?
\vfill
\item How many ways are there to choose five fruits?
\vfill
\item How many ways are there to choose three candies and six fruits?
\vfill
\item Gregory chooses two fruits and two candies, and lines up the four objects on the table. In how many ways can he do it?
\vfill
\item Gregory chooses five fruits and seven candies, and lines up the twelve objects on the table. In how many ways can he do it?
\vfill
\end{itemize}
% Ugly hack
\tikzstyle{level 1}=[level distance=3.5cm, sibling distance=3.5cm]
\tikzstyle{level 2}=[level distance=3.5cm, sibling distance=2cm]
\tikzstyle{split} = [text width=1em, text centered]
\tikzstyle{tsplit} = [text width=0, text centered]
\tikzstyle{end} = [minimum width=3pt, inner sep=0pt]
\pagebreak
\vspace{190pt}
\pagebreak
\begin{center}
\section{Probability}
\end{center}
\vspace{10pt}
A \textit{probability}, also known as a \textit{chance}, is a number showing how likely some event is to happen. Let us call the event $X$. Then the probability of $X$ taking place is
$$
\P{X} = \frac{
\text{The number of the outcomes such that $X$ happens.}
}{
\text{The number of all the possible outcomes.}
}
$$
Note that by definition, $0 \leq P(X) \leq 1$. \\
In some of the following problems, we will be flipping a coin. Let us use $H$ to represent the event of the coin landing heads, and $T$, the event of the coin landing tails.
\problem{}
Compute each of the following:
\begin{enumerate}
\item \Pt{Rolling a six-sided die and getting 2}
\item \Pt{Flipping a coin twice and getting the sequence HH}
\item \Pt{Flipping a coin twice and getting one head and one tail in any order}
\item \Pt{Rolling two six-sided dice and getting a sum of 5}
\end{enumerate}
\vfill
\pagebreak
Some parts of the previous problem involve repeated trials: two dice, or two coins. You may have solved these by listing out all the possible outcomes. Though this simple approach works for small problems, it isn't particularly useful for larger ones: ten coin flips create 1024 possible outcomes, and ten dice rolls, 60466174.
\medskip
A better way to think about repeated trials is as a ``tree,'' where each outcome represents a path. The following tree represents two coin flips, and the four paths down it (from left to right) correspond to the four possible outcomes: HH, HT, TH, TT.
% Ugly hack
\tikzstyle{level 1}=[level distance=3.5cm, sibling distance=3.5cm]
\tikzstyle{level 2}=[level distance=3.5cm, sibling distance=2cm]
\tikzstyle{split} = [text width=1em, text centered]
\tikzstyle{tsplit} = [text width=0, text centered]
\tikzstyle{end} = [minimum width=3pt, inner sep=0pt]
\begin{center}
\begin{tikzpicture}[grow=right]
\node[tsplit] {}
child {
node[split] {T}
child {
node[end, label=right:{T\ \ \ (TT)}] {}
edge from parent
}
child {
node[end, label=right:{H\ \ \ (TH)}] {}
edge from parent
}
edge from parent
}
child {
node[split] {H}
\begin{center}
\begin{tikzpicture}[grow=right]
\node[tsplit] {}
child {
node[end, label=right:{T\ \ \ (HT)}] {}
node[split] {T}
child {
node[end, label=right:{T\ \ \ (TT)}] {}
edge from parent
}
child {
node[end, label=right:{H\ \ \ (TH)}] {}
edge from parent
}
edge from parent
}
child {
node[end, label=right:{H\ \ \ (HH)}] {}
edge from parent
}
edge from parent
};
\end{tikzpicture}
\end{center}
If we label each edge with the probability of each event, we can calculate the probability of each outcome by multiplying the edges we passed:
\begin{center}
\begin{tikzpicture}[grow=right]
\node[tsplit] {}
child {
node[split] {T}
child {
node[end, label=right:{T\ \ \ ({TT, $\frac{1}{4}$})}] {}
edge from parent
node[below] {$\frac{1}{2}$}
}
child {
node[end, label=right:{H\ \ \ ({TH, $\frac{1}{4}$})}] {}
edge from parent
node[below] {$\frac{1}{2}$}
}
edge from parent
node[below] {$\frac{1}{2}$}
}
child {
node[split] {H}
}
child {
node[end, label=right:{T\ \ \ ({HT, $\frac{1}{4}$})}] {}
edge from parent
node[below] {$\frac{1}{2}$}
}
node[split] {H}
child {
node[end, label=right:{H\ \ \ ({HH, $\frac{1}{4}$})}] {}
node[end, label=right:{T\ \ \ (HT)}] {}
edge from parent
}
child {
node[end, label=right:{H\ \ \ (HH)}] {}
edge from parent
}
edge from parent
};
\end{tikzpicture}
\end{center}
If we label each edge with the probability of each event, we can calculate the probability of each outcome by multiplying the edges we passed:
\begin{center}
\begin{tikzpicture}[grow=right]
\node[tsplit] {}
child {
node[split] {T}
child {
node[end, label=right:{T\ \ \ ({TT, $\frac{1}{4}$})}] {}
edge from parent
node[below] {$\frac{1}{2}$}
}
child {
node[end, label=right:{H\ \ \ ({TH, $\frac{1}{4}$})}] {}
edge from parent
node[below] {$\frac{1}{2}$}
}
edge from parent
node[below] {$\frac{1}{2}$}
}
edge from parent
node[below] {$\frac{1}{2}$}
};
\end{tikzpicture}
\end{center}
}
child {
node[split] {H}
child {
node[end, label=right:{T\ \ \ ({HT, $\frac{1}{4}$})}] {}
edge from parent
node[below] {$\frac{1}{2}$}
}
child {
node[end, label=right:{H\ \ \ ({HH, $\frac{1}{4}$})}] {}
edge from parent
node[below] {$\frac{1}{2}$}
}
edge from parent
node[below] {$\frac{1}{2}$}
};
\end{tikzpicture}
\end{center}
We can formalize this idea as follows:
We can formalize this idea as follows:
\proposition{}
If we have two independent events $A$ and $B$, then $\Pt{A and B} = \P{A} \times \P{B}$. \\
Usually we write $\Pt{A and B}$ as $\P{A \cap B}$. \\
\proposition{}
If we have two independent events $A$ and $B$, then $\Pt{A and B} = \P{A} \times \P{B}$. \\
Usually we write $\Pt{A and B}$ as $\P{A \cap B}$. \\
\vfill
\vfill
Here's another important thought:
Here's another important thought:
\proposition{}
If the probability of event $A$ happening is $\P{A}$, the probability of $A$ \textit{not} happening is $1 - \P{A}$
\proposition{}
If the probability of event $A$ happening is $\P{A}$, the probability of $A$ \textit{not} happening is $1 - \P{A}$
\pagebreak
\pagebreak
\problem{}
There are three cans of white paint and two cans of black paint in a dark storage room. You take two cans out without looking. What is the probability that you'll choose two cans of the same color?
\vfill
\problem{}
There are three cans of white paint and two cans of black paint in a dark storage room. You take two cans out without looking. What is the probability that you'll choose two cans of the same color?
\vfill
\problem{}
Hospital records show that of patients
suffering from a certain disease,
75\% die of it. What is the probability
that of 5 randomly selected patients,
4 will recover? \\
\hint{What is the probability of a patient recovering?}
\vfill
\problem{}
Hospital records show that of patients
suffering from a certain disease,
75\% die of it. What is the probability
that of 5 randomly selected patients,
4 will recover? \\
\hint{What is the probability of a patient recovering?}
\vfill
\problem{}
When Oleg calls his daughter Anya,
the chance of the call getting through is 60\%.
How likely is it to have at least one connection
in four calls?
\vfill
\problem{}
When Oleg calls his daughter Anya,
the chance of the call getting through is 60\%.
How likely is it to have at least one connection
in four calls?
\vfill
\problem{}
The chance of a runner to improve
his own personal record in a race is $p$.
What is the probability that his record will improve after 3 races?
\vfill
\problem{}
The chance of a runner to improve
his own personal record in a race is $p$.
What is the probability that his record will improve after 3 races?
\vfill
\newpage
\newpage
\problem{}
You toss a pair of fair dice five times.
What is the probability that you get a sum of ten exactly two times?
\vfill
\problem{}
You toss a pair of fair dice five times.
What is the probability that you get a sum of ten exactly two times?
\vfill
\problem{}
You toss a pair of fair dice five times.
What is the probability that you get ten
at least twice?
\vfill
\problem{}
You toss a pair of fair dice five times.
What is the probability that you get ten
at least twice?
\vfill
\problem{}
A fair coin is tossed 4 times. What is the chance of getting more heads than tails?
\vfill
\problem{}
A fair coin is tossed 4 times. What is the chance of getting more heads than tails?
\vfill
\problem{}
A pharmaceutical study shows that a new drug causes negative side effects in 3 of every 100 patients.
To check the number, a researcher chooses 5 random people to survey.
Assuming the study is accurate, what is the probabilty of the following? \\
\problem{}
A pharmaceutical study shows that a new drug causes negative side effects in 3 of every 100 patients.
To check the number, a researcher chooses 5 random people to survey.
Assuming the study is accurate, what is the probabilty of the following? \\
\begin{enumerate}
\item None of the five patients experience side effects.
\item At least two experience side effects.
\end{enumerate}
\begin{enumerate}
\item None of the five patients experience side effects.
\item At least two experience side effects.
\end{enumerate}
\vfill
\pagebreak
\vfill
\pagebreak
\problem{}
You pick up a natural number (positive integer)
at random. What is the probability
that the number is divisible by either two
or three?
\problem{}
You pick up a natural number (positive integer)
at random. What is the probability
that the number is divisible by either two
or three?
\vfill
\vfill
\problem{}
Three players are tossing a fair coin.
The first to have a HEAD wins.
What are the players' chances of winning?
\problem{}
Three players are tossing a fair coin.
The first to have a HEAD wins.
What are the players' chances of winning?
\vfill
\vfill
\section{Harder Probabilities}
\section{Harder Probabilities}
\problem{}
Oleg wrote ten letters to Math Circle parents
and addressed the ten envelopes. However, he
left the final stages of mailing to a careless clerk who
didn't pay attention, inserting the letters
into the envelopes at random.
(However, he did manage to fit exactly
one letter in each envelope.)
What is the probability that exactly nine of
the ten letters is correctly addressed?
\problem{}
Oleg wrote ten letters to Math Circle parents
and addressed the ten envelopes. However, he
left the final stages of mailing to a careless clerk who
didn't pay attention, inserting the letters
into the envelopes at random.
(However, he did manage to fit exactly
one letter in each envelope.)
What is the probability that exactly nine of
the ten letters is correctly addressed?
\vfill
\vfill
\problem{}
On a sold-out flight, the first person to
board the plane forgot which seat was his
and chose a random seat. Subsequent passengers
took their assigned seat if available, or a
randomly chosen seat if not. When the last
person boards, there is only one seat left.
What is the probability that this was the
seat assigned to the last passenger?
\problem{}
On a sold-out flight, the first person to
board the plane forgot which seat was his
and chose a random seat. Subsequent passengers
took their assigned seat if available, or a
randomly chosen seat if not. When the last
person boards, there is only one seat left.
What is the probability that this was the
seat assigned to the last passenger?
\vfill
\pagebreak
\vfill
\pagebreak
\problem{}
Your new neighbor has two children.
Assuming that it is equally likely
for a child to be a boy or a girl,
what is the probability that both
of the neighbor's children are girls?
Does the probability change if you
discover that one of the children
is indeed a girl? If so, how?
\problem{}
Your new neighbor has two children.
Assuming that it is equally likely
for a child to be a boy or a girl,
what is the probability that both
of the neighbor's children are girls?
Does the probability change if you
discover that one of the children
is indeed a girl? If so, how?
\vfill
\vfill
\problem{}
A bag contains a marble which is either
black or white --- but we don't know which.
We put a white marble into the bag and shake it.
We then draw out a white marble.
What is the probability that the marble
left inside the bag is also white?
\problem{}
A bag contains a marble which is either
black or white --- but we don't know which.
We put a white marble into the bag and shake it.
We then draw out a white marble.
What is the probability that the marble
left inside the bag is also white?
\vfill
\vfill
\problem{The Monty Hall Problem}
You are a contestant on a certain game show.
There are three doors.
Behind one door is a brand-new car.
Behind the other two doors are goats.
You are invited to choose one of the doors.
Before opening the selected door, the game show host
opens one of the other two doors, revealing a goat.
You can now either keep your (original)
choice, or switch to the other unopened door.
Which choice gives you a better chance of winning
the car? Does it matter? Explain your answer.
\vfill
\problem{The Monty Hall Problem}
You are a contestant on a certain game show.
There are three doors.
Behind one door is a brand-new car.
Behind the other two doors are goats.
You are invited to choose one of the doors.
Before opening the selected door, the game show host
opens one of the other two doors, revealing a goat.
You can now either keep your (original)
choice, or switch to the other unopened door.
Which choice gives you a better chance of winning
the car? Does it matter? Explain your answer.
\vfill
\end{document}

View File

@ -6,6 +6,7 @@
\usepackage{pdfpages}
\usepackage{sliderule}
\usepackage{changepage}
% Args:
% x, top scale y, label
@ -22,15 +23,16 @@
node [below] {#3};
}
\uptitlel{Intermediate 2}
\uptitler{Summer 2022}
\title{Slide Rules}
\subtitle{Prepared by Mark on \today}
\begin{document}
\maketitle
<Intermediate 2>
<Summer 2022>
{Slide Rules}
{
Prepared by Mark on \today
}
\begin{center}
\begin{minipage}{6cm}

View File

@ -3,23 +3,18 @@
\documentclass[solutions]{../../resources/ormc_handout}
\usepackage{adjustbox}
\uptitlel{Intermediate 2}
\uptitler{ORMC Summer Sessions}
\title{Vectors 1}
\subtitle{
Prepared by Mark on \today \\
Based on a handout by Oleg Gleizer
}
\begin{document}
\begin{adjustbox}{minipage=0.7\textwidth, margin=0pt \smallskipamount,center}
\begin{center}
\textsc{Intermediate 2 \hfill ORMC Summer Sessions} \\
\rule{\linewidth}{0.2mm}\\
\huge
Vectors 1\\
\normalsize
\vspace{1ex}
Prepared by Mark on \today. \\
Based on a handout by Oleg Gleizer.
\rule{\linewidth}{0.2mm}\\
\end{center}
\end{adjustbox}
\maketitle
\section{Warm-Up}
@ -113,11 +108,11 @@
In other words, two vectors are equivalent if they have the same length and direction. If this is the case, we write $v = w$.
\note<Note 1>{
\note[Note 1]{
Convince yourself that this is true. Why are these two definitions of vector equivalence interchangeable?
}
\note<Note 2>{
\note[Note 2]{
A vector is characterized by its direction and length. One cannot make a formal definition out of this observation, because a ``direction'' is formally defined in terms of a vector.
}
@ -450,7 +445,7 @@
\vfill
\note<Note>{
\note[Note]{
With the tools we have thus far, we can multiply vectors by any rational number using only a compass and a ruler. Multiplying a vector by an irrational number is a bit more tricky, but it is doable...
}

View File

@ -3,18 +3,17 @@
\documentclass[solutions]{../../resources/ormc_handout}
\uptitlel{Intermediate 2}
\uptitler{ORMC Summer Sessions}
\title{Vectors 2}
\subtitle{
Prepared by Mark on \today \\
Based on a handout by Oleg Gleizer
}
\begin{document}
\maketitle
<Intermediate 2>
<ORMC Summer Sessions>
{Vectors 2}
{
Prepared by Mark on \today \\
Based on a handout by Oleg Gleizer
}
\section{Review}

View File

@ -8,18 +8,20 @@
\usepackage{graphicx}
\graphicspath{ {./images} }
\uptitlel{Intermediate 2}
\uptitler{ORMC Summer Sessions}
\title{Warm - Up}
\subtitle{
Prepared by Mark on \today \\
\medskip
These problems were originally found in \\
Boris Kordemsky's \textit{The Moscow Puzzles}
}
\begin{document}
\maketitle
<Intermediate 2>
<ORMC Summer Sessions>
{Warm - Up}
{
Prepared by Mark on \today \\
\medskip
These problems were originally found in \\
Boris Kordemsky's \textit{The Moscow Puzzles}
}
\subfile{problems/217}
\vfill

View File

@ -1,19 +1,20 @@
\documentclass[
solutions,
nowarning,
hidewarning,
singlenumbering,
nopagenumber
]{../../resources/ormc_handout}
\usepackage[linguistics]{forest}
\title{Warm-Up: What's an AST?}
\subtitle{Prepared by Mark on \today. \\ Based on a true story.}
\begin{document}
\maketitle
{Warm-Up: What's an AST?}
{Prepared by Mark on \today. \\ Based on a true story.}
\vspace{2mm}
Say you have a valid string of simple arithmetic that contains no unary operators (like $3!$ or $-4$) and no parenthesis:
$$

View File

@ -1,6 +1,6 @@
\documentclass[
solutions,
nowarning,
hidewarning,
singlenumbering,
nopagenumber
]{../../resources/ormc_handout}
@ -20,13 +20,15 @@
}
}
\title{The Electrician's Warm-Up}
\subtitle{Prepared by Mark on \today}
\begin{document}
\maketitle
{The Electrician's Warm-Up}
{Prepared by Mark on \today}
\vspace{2mm}
Ivan the electician is working in an apartment. He has a box of switches, which come in three types:
\begin{center}

View File

@ -1,17 +1,20 @@
\documentclass[
nosolutions,
warning,
solutions,
hidewarning,
singlenumbering,
nopagenumber
]{../../resources/ormc_handout}
\usepackage[linguistics]{forest}
\title{Warm-Up: A Familiar Concept}
\subtitle{Prepared by Mark on \today}
\begin{document}
\maketitle
{Warm-Up: A Familiar Concept}
{Prepared by Mark on \today.}
\problem{}<one>

View File

@ -1,19 +1,21 @@
\documentclass[
solutions,
nowarning,
hidewarning,
singlenumbering,
nopagenumber
]{../../resources/ormc_handout}
\usepackage{tikz}
\title{The Sysadmin's Warm-Up}
\subtitle{Prepared by Mark on \today}
\begin{document}
\maketitle
{The Sysadmin's Warm-Up}
{Prepared by Mark on \today}
\vspace{2mm}
Most of you have seen a hard drive. Many have touched one, and a lucky few have poked around inside one. These devices have two interesting properties:

View File

@ -1,6 +1,6 @@
\documentclass[
solutions,
nowarning
hidewarning,
]{../../resources/ormc_handout}
@ -11,13 +11,14 @@
\sethlcolor{Light}
\newcommand{\htexttt}[1]{\texttt{\hl{#1}}}
\title{The Regex Warm-Up}
\subtitle{Prepared by Mark on \today}
\begin{document}
\maketitle
{The Regex Warm-Up}
{Prepared by Mark on \today}
\vspace{2mm}
Last time, we discussed Deterministic Finite Automata. One interesting application of these mathematical objects is found in computer science: Regular Expressions. \\
(abbreviated \say{regex}, which is pronounced like \say{gif})

View File

@ -1,19 +1,18 @@
\documentclass[
nosolutions,
warning,
solutions,
singlenumbering,
nopagenumber
]{../../resources/ormc_handout}
\usepackage[linguistics]{forest}
\title{Warm-Up: Exact answers}
\subtitle{Prepared by Mark on \today}
\begin{document}
\maketitle
{Warm-Up: Exact answers}
{Prepared by Mark on \today.}
\vspace{2mm}
Compute the exact value of $\sin(x^\circ)$ for as many integers $x \in [0, 90]$ as you can.

View File

@ -1,6 +1,6 @@
\documentclass[
solutions,
nowarning
hidewarning,
]{../resources/ormc_handout}
@ -88,6 +88,12 @@
}
\title{Mark's Problem Library}
\subtitle{
This document lists all problems in this library. \\
Use it to find problems or debug the source.
}
\begin{document}
\maketitle
{Mark's Problem Library}