Skip to content
Snippets Groups Projects
Commit c8164761 authored by W. Spencer Smith's avatar W. Spencer Smith
Browse files

Edits to L16, L17 and L18

parent f09dc3bc
No related branches found
No related tags found
No related merge requests found
No preview for this file type
No preview for this file type
......@@ -22,7 +22,7 @@
\mode<presentation>{}
\input{../def-beamer}
\Drafttrue
\Draftfalse
\newcommand{\topicTitle}{17 Module Guide (H\&S Chapt.\ 6)}
\ifDraft
......@@ -44,6 +44,7 @@
\begin{itemize}
\item Administrative details
\item Index set example
\item Parnas's Rational Design Process
\item Module guide
\item Examples
......@@ -66,21 +67,18 @@ TBD
\else
{
\begin{itemize}
\item \href{run:Notetaking.pdf}{Notetaker needed for CS 2ME3}
\item Assignment 2
\begin{itemize}
\item Files due by 11:59 pm Feb 15
\item File automatically sent to partner on Feb 16
\item Lab report due by 11:59 pm Feb 27
\item \structure{Minor edit: s in LineADT corrected to b}
\item Part 1: February 12, 2018
\item Partner Files: February 18, 2018
\item Part 2: March 2, 2018
\end{itemize}
\item Midterm exam
\begin{itemize}
\item March 1, 7:00 pm, TSH/120
\item Wednesday, February 28, 7:00 pm
\item 90 minute duration
\item Multiple choice - 30--40 questions?
\item Open book (any paper)
\item This week's tutorial will cover a sample midterm
\end{itemize}
\end{itemize}
......@@ -91,6 +89,22 @@ TBD
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{frame}
\frametitle{Homework: Index Set}
Write a function \texttt{indexSet(x, B)} that takes a value \texttt{x} and a
list of values \texttt{B} and returns a list of indices where \texttt{B[i] =
x}.\\
~\newline
\structure<1>{As a first step, how would you say this mathematically?}\\
\uncover<2->{$$\mbox{indexSet}(x, B) \equiv \{i : \mathbb{N} | i \in [0 .. |B|-1] \wedge B_i =
x : i\}$$}\\
\end{frame}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{frame}
\frametitle{``Upside Down'' Tree Uses Relation}
......
......@@ -44,7 +44,6 @@
\begin{itemize}
\item Administrative details
\item Index set example
\item Solar water heating tank example
\item Dr.\ v.\ Mohrenschildt's maze tracing robot (\href{https://gitlab.cas.mcmaster.ca/smiths/se2aa4_cs2me3/blob/master/ReferenceMaterial/ExampleMaze_FormalSpec.pdf}{see GitLab})
\item MIS for maze\_storage
......@@ -89,35 +88,6 @@ TBD
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{frame}
\frametitle{Index Set}
Write a function \texttt{indexSet(x, B)} that takes a value \texttt{x} and a
list of values \texttt{B} and returns a list of indices where \texttt{B[i] =
x}.\\
~\newline
As a first step, how would you say this mathematically?
\end{frame}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{frame}
\frametitle{Index Set}
Write a function \texttt{indexSet(x, B)} that takes a value \texttt{x} and a
list of values \texttt{B} and returns a list of indices where \texttt{B[i] =
x}.\\
$$\mbox{indexSet}(x, B) \equiv \{i : \mathbb{N} | i \in [0 .. |B|-1] \wedge B_i =
x : i\}$$
How could you use \texttt{indexSet} to calculate \texttt{rank(x, A)}?
\end{frame}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{frame}
\frametitle{Solar Water Heating System Example}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment