Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
se2aa4_cs2me3
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
W. Spencer Smith
se2aa4_cs2me3
Commits
89df0456
Commit
89df0456
authored
7 years ago
by
W. Spencer Smith
Browse files
Options
Downloads
Patches
Plain Diff
Updates to L10, still need to add more questions
parent
0646b697
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Lectures/L10_ADTs/ADTs.pdf
+0
-0
0 additions, 0 deletions
Lectures/L10_ADTs/ADTs.pdf
Lectures/L10_ADTs/ADTs.tex
+32
-30
32 additions, 30 deletions
Lectures/L10_ADTs/ADTs.tex
Lectures/L10_ADTs/src/SequenceAO.py
+1
-1
1 addition, 1 deletion
Lectures/L10_ADTs/src/SequenceAO.py
with
33 additions
and
31 deletions
Lectures/L10_ADTs/ADTs.pdf
+
0
−
0
View file @
89df0456
No preview for this file type
This diff is collapsed.
Click to expand it.
Lectures/L10_ADTs/ADTs.tex
+
32
−
30
View file @
89df0456
...
...
@@ -22,7 +22,7 @@
\mode
<presentation>
{}
\input
{
../def-beamer
}
\Draft
tru
e
\Draft
fals
e
\newcommand
{
\topicTitle
}{
10 Abstract Data Types (Ghezzi Ch.
\
4)
}
\ifDraft
...
...
@@ -68,27 +68,12 @@ TBD
\else
{
\begin{itemize}
\item
Capstone team data collection
\item
Assignment 1
\begin{itemize}
\item
\structure
{
Files due by 11:59 pm January 28
}
\item
\structure
{
E-mail partner files by 11:59 pm January 29
}
\item
Lab report due by 11:59 pm February 2
\item
Using Python 2.7, doxygen, make, LaTeX, git
\item
Make sure everything runs on mills
\item
Use the folder structure and filenames given!
\item
Partner Files: January 28, 2018
\item
Part 2: January 31, 2018
\end{itemize}
% \item Assignment 2
% \begin{itemize}
% \item Files due by midnight February 2
% \item Send code to partner by midnight February 3
% \item Lab report due by the beginning of class on February 9
% \end{itemize}
% \item Midterm exam
% \begin{itemize}
% \item March 4, during tutorial time
% %\item In T29/105, not our usual classroom
% \end{itemize}
\item
Questions on assignment?
\end{itemize}
}
\fi
...
...
@@ -97,24 +82,41 @@ TBD
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% \begin{frame}
% \frametitle{File Transfer To the CAS Servers}
% \begin{itemize}
% \item sftp
% \item Samba: \href{smb://nts5.cas.mcmaster.ca/macid}{smb://nts5.cas.mcmaster.ca/macid}
% \item Mount a drive over sftp using SSHFS
% \href{https://igikorn.com/sshfs-windows-10/}{https://igikorn.com/sshfs-windows-10/}
% \end{itemize}
% \end{frame}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{frame}
\frametitle
{
File Transfer To the CAS Servers
}
\frametitle
{
Homework: Abstract Objects in Python
}
\begin{itemize}
\item
sftp
\item
Samba:
\href
{
smb://nts5.cas.mcmaster.ca/macid
}{
smb://nts5.cas.mcmaster.ca/macid
}
\item
Mount a drive over sftp using SSHFS
\href
{
https://igikorn.com/sshfs-windows-10/
}{
https://igikorn.com/sshfs-windows-10/
}
\end{itemize}
H
\&
S versus Python for s = [4, 6, -2, 8, 11]
\bi
\item
\structure
<1>
{
H
\&
S for s[1:3]?
}
\uncover
<2->
{
[6, -2, 8]
}
\item
\structure
<1>
{
Python for s[1:3]?
}
\uncover
<2->
{
[6, -2]
}
\item
\structure
<2>
{
H
\&
S for s[0:-1]?
}
\uncover
<3->
{
[]
}
\item
\structure
<2>
{
Python for s[0:-1]?
}
\uncover
<3->
{
[4, 6, -2, 8]
}
\item
\structure
<3>
{
H
\&
S for s[0:0]?
}
\uncover
<4->
{
[4]
}
\item
\structure
<3>
{
Python for s[0:0]?
}
\uncover
<4->
{
[]
}
\ei
\end{frame}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{frame}
\frametitle
{
Implementation of An
Abstract Object in Python
}
\frametitle
{
Homework:
Abstract Object
s
in Python
}
See the sample files in the repo.
See the sample files
Python
in the repo
and compare to Sequence specification
.
\end{frame}
...
...
@@ -213,7 +215,7 @@ None
\noindent
new pointT (
$
x, y
$
):
\begin{itemize}
\item
transition:
$
xc, yc :
=
x, y
$
\item
output:
$
out :
=
\mathit
{
self
}$
\item
output:
\uncover
<1>
{
\structure
<1>
{
?
}}
\uncover
<2->
{
$
out :
=
\mathit
{
self
}$
}
\item
exception: none
\end{itemize}
...
...
@@ -370,7 +372,7 @@ None
\noindent
length:
\begin{itemize}
\item
output:
$
out :
=
s.
\mbox
{
dist
}
(
e
)
$
\item
output:
\uncover
<1>
{
\structure
{
?
}}
\uncover
<2->
{
$
out :
=
s.
\mbox
{
dist
}
(
e
)
$
}
\item
exception: none
\end{itemize}
...
...
This diff is collapsed.
Click to expand it.
Lectures/L10_ADTs/src/SequenceAO.py
+
1
−
1
View file @
89df0456
## @file SequenceAO.py
# @author Spencer Smith
# @brief Implements an abstract object for a sequence, as specified
# in L9
.
# in L9
, program written in Python 2.7
# @date 1/24/2017
## @brief An Abstract Object that represents a sequence
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment