-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
163 lines (163 loc) · 12.2 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" lang="" xml:lang="">
<head>
<meta charset="utf-8" />
<meta name="generator" content="pandoc" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes" />
<title>Program and Data Representation: Labs</title>
<style>
code{white-space: pre-wrap;}
span.smallcaps{font-variant: small-caps;}
span.underline{text-decoration: underline;}
div.column{display: inline-block; vertical-align: top; width: 50%;}
div.hanging-indent{margin-left: 1.5em; text-indent: -1.5em;}
ul.task-list{list-style: none;}
.display.math{display: block; text-align: center; margin: 0.5rem auto;}
</style>
<link rel="stylesheet" href="../markdown.css" />
<!--[if lt IE 9]>
<script src="//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.3/html5shiv-printshiv.min.js"></script>
<![endif]-->
</head>
<body>
<h1 id="program-and-data-representation-labs">Program and Data Representation: Labs</h1>
<p><a href="../readme.html">Go up to the main README file</a></p>
<p>The labs for this course:</p>
<ul>
<li><a href="lab01/index.html">Lab 1: Introduction to C++</a>
<ul>
<li>Source code
<ul>
<li>Lifecycle code: <a href="lab01/lifecycle.cpp.html">lifecycle.cpp</a> (<a href="lab01/lifecycle.cpp">src</a>)</li>
<li>Vector code: <a href="lab01/svtest.cpp.html">svtest.cpp</a> (<a href="lab01/svtest.cpp">src</a>), <a href="lab01/svutil.h.html">svutil.h</a> (<a href="lab01/svutil.h">src</a>), <a href="lab01/svutil.cpp.html">svutil.cpp</a> (<a href="lab01/svutil.cpp">src</a>)</li>
<li>Linked List code: <a href="lab01/list.h.html">list.h</a> (<a href="lab01/list.h">src</a>), <a href="lab01/list.cpp.html">list.cpp</a> (<a href="lab01/list.cpp">src</a>)</li>
</ul></li>
<li><a href="../tutorials/01-intro-unix/index.html">Tutorial 1: Introduction to Unix</a> and <a href="../tutorials/01-intro-unix/virtual-box.html">Tutorial 1: Introduction to Unix: VirtualBox use</a></li>
</ul></li>
</ul>
<p> </p>
<ul>
<li><a href="lab02/index.html">Lab 2: Linked Lists</a>
<ul>
<li>Source code: <a href="lab02/ListNode.h.html">ListNode.h</a> (<a href="lab02/ListNode.h">src</a>), <a href="lab02/List.h.html">List.h</a> (<a href="lab02/List.h">src</a>), <a href="lab02/ListItr.h.html">ListItr.h</a> (<a href="lab02/ListItr.h">src</a>), <a href="lab02/ListTest.cpp.html">ListTest.cpp</a> (<a href="lab02/ListTest.cpp">src</a>),</li>
<li><a href="../tutorials/02-lldb/index.html">Tutorial 2: LLDB</a> and the necessary <a href="../tutorials/02-lldb/prog1.cpp.html">prog1.cpp</a> (<a href="../tutorials/02-lldb/prog1.cpp">src</a>) and <a href="../tutorials/02-lldb/debug.cpp.html">debug.cpp</a> (<a href="../tutorials/02-lldb/debug.cpp">src</a>)</li>
</ul></li>
</ul>
<p> </p>
<ul>
<li><a href="lab03/index.html">Lab 3: Stacks</a>
<ul>
<li>No source code for this lab!</li>
<li><a href="../tutorials/03-04-more-unix/index.html">Tutorial 3: More Unix, part 1</a>, which is the introduction and sections 1-4; this tutorial is originally from <a href="http://www.ee.surrey.ac.uk/Teaching/Unix/">here</a></li>
</ul></li>
</ul>
<p> </p>
<ul>
<li><a href="lab04/index.html">Lab 4: Number Representation</a>
<ul>
<li>No source code for this lab!</li>
<li><del>You can get your floating point number, needed for the pre-lab, <a href="http://libra.cs.virginia.edu/getfloat.php">here</a></del></li>
<li>Necessary files: <a href="lab04/inlab4.doc">inlab4.doc</a>, <a href="lab04/radixWorksheet.doc">radixWorksheet.doc</a>
<ul>
<li>These will have to be submitted as PDF files; see <a href="../docs/convert_to_pdf.html">How To Convert A File To PDF</a> for details.</li>
</ul></li>
<li><a href="../tutorials/03-04-more-unix/index.html">Tutorial 4: More Unix, part 2</a>, which is sections 5-8; this tutorial is originally from <a href="http://www.ee.surrey.ac.uk/Teaching/Unix/">here</a></li>
</ul></li>
</ul>
<p> </p>
<ul>
<li><a href="lab05/index.html">Lab 5: Trees</a>
<ul>
<li>Source code is all contained in the prelab/, inlab/, and postlab/ directories of the <a href="lab05/code.zip">code.zip</a> file
<ul>
<li>Pre-lab: <a href="lab05/code/prelab/TreeCalc.h.html">TreeCalc.h</a> (<a href="lab05/code/prelab/TreeCalc.h">src</a>), <a href="lab05/code/prelab/TreeCalc.cpp.html">TreeCalc.cpp</a> (<a href="lab05/code/prelab/TreeCalc.cpp">src</a>), <a href="lab05/code/prelab/TreeNode.cpp.html">TreeNode.cpp</a> (<a href="lab05/code/prelab/TreeNode.cpp">src</a>), <a href="lab05/code/prelab/TreeNode.h.html">TreeNode.h</a> (<a href="lab05/code/prelab/TreeNode.h">src</a>), <a href="lab05/code/prelab/TreeCalcTest.cpp.html">TreeCalcTest.cpp</a> (<a href="lab05/code/prelab/TreeCalcTest.cpp">src</a>).</li>
<li>In-lab: <a href="lab05/code/inlab/BinaryNode.h.html">BinaryNode.h</a> (<a href="lab05/code/inlab/BinaryNode.h">src</a>), <a href="lab05/code/inlab/BinaryNode.cpp.html">BinaryNode.cpp</a> (<a href="lab05/code/inlab/BinaryNode.cpp">src</a>), <a href="lab05/code/inlab/BinarySearchTree.h.html">BinarySearchTree.h</a> (<a href="lab05/code/inlab/BinarySearchTree.h">src</a>), <a href="lab05/code/inlab/BinarySearchTree.cpp.html">BinarySearchTree.cpp</a> (<a href="lab05/code/inlab/BinarySearchTree.cpp">src</a>), <a href="lab05/code/inlab/BSTPathTest.cpp.html">BSTPathTest.cpp</a> (<a href="lab05/code/inlab/BSTPathTest.cpp">src</a>), <a href="lab05/code/inlab/testfile1.txt">testfile1.txt</a>, <a href="lab05/code/inlab/testfile2.txt">testfile2.txt</a>, <a href="lab05/code/inlab/testfile3.txt">testfile3.txt</a>.</li>
<li>Post-lab: <a href="lab05/code/postlab/AVLNode.h.html">AVLNode.h</a> (<a href="lab05/code/postlab/AVLNode.h">src</a>), <a href="lab05/code/postlab/AVLNode.cpp.html">AVLNode.cpp</a> (<a href="lab05/code/postlab/AVLNode.cpp">src</a>), <a href="lab05/code/postlab/AVLTree.h.html">AVLTree.h</a> (<a href="code/postlab/AVLTree.h">src</a>), <a href="lab05/code/postlab/AVLTree.cpp.html">AVLTree.cpp</a> (<a href="lab05/code/postlab/AVLTree.cpp">src</a>), <a href="lab05/code/postlab/AVLPathTest.cpp.html">AVLPathTest.cpp</a> (<a href="lab05/code/postlab/AVLPathTest.cpp">src</a>), <a href="lab05/code/postlab/testfile1.txt">testfile1.txt</a>, <a href="lab05/code/postlab/testfile2.txt">testfile2.txt</a>, <a href="lab05/code/postlab/testfile3.txt">testfile3.txt</a>.</li>
</ul></li>
<li><a href="../tutorials/05-make/index.html">Tutorial 5: make</a></li>
</ul></li>
</ul>
<p> </p>
<ul>
<li><a href="lab06/index.html">Lab 6: Hashing</a>
<ul>
<li>Source code: <a href="lab06/code/getWordInGrid.cpp.html">getWordInGrid.cpp</a> (<a href="lab06/code/getWordInGrid.cpp">src</a>), <a href="lab06/code/primenumber.cpp.html">primenumber.cpp</a> (<a href="lab06/code/primenumber.cpp">src</a>), <a href="lab06/code/timer.cpp.html">timer.cpp</a> (<a href="lab06/code/timer.cpp">src</a>), <a href="lab06/code/timer.h.html">timer.h</a> (<a href="lab06/code/timer.h">src</a>), <a href="lab06/code/timer_test.cpp.html">timer_test.cpp</a> (<a href="lab06/code/timer_test.cpp">src</a>)
<ul>
<li>These can also be downloaded all at once via the <a href="lab06/code.zip">code.zip</a> file</li>
</ul></li>
<li>The data files in the labs/lab06/data/ directory
<ul>
<li>These can also be downloaded all at once via the <a href="lab06/data.zip">data.zip</a> file</li>
</ul></li>
<li>The tutorial, for the in-lab, is the first 6 sections (through and including ‘exit status’) of the <a href="http://en.wikibooks.org/wiki/Bash_Shell_Scripting">Wikibooks article on Bash Shell Scripting</a></li>
</ul></li>
</ul>
<p> </p>
<ul>
<li><a href="lab07/index.html">Lab 7: IBCM</a> (machine language)
<ul>
<li>C++ Source code: <a href="lab07/bubblesort.cpp.html">bubblesort.cpp</a> (<a href="lab07/bubblesort.cpp">src</a>), <a href="lab07/counter.cpp.html">counter.cpp</a> (<a href="lab07/counter.cpp">src</a>)</li>
<li>IBCM source code: <a href="../ibcm/summation.ibcm">summation.ibcm</a> and <a href="../ibcm/array-summation.ibcm">array-summation.ibcm</a></li>
<li>The online emulator is <a href="http://pegasus.cs.virginia.edu/ibcm/">here</a></li>
<li>The <a href="../book/ibcm-chapter.pdf">IBCM book chapter</a> (PDF)</li>
</ul></li>
</ul>
<p> </p>
<ul>
<li>Lab 8: x86 (assembly), part 1: in 32-bit and 64-bit versions
<ul>
<li><a href="lab08-64bit/index.html">64-bit version of the lab</a>
<ul>
<li>Source code: <a href="lab08-64bit/vecsum.s.html">vecsum.s</a> (<a href="lab08-64bit/vecsum.s">src</a>), <a href="lab08-64bit/main.cpp.html">main.cpp</a> (<a href="lab08-64bit/main.cpp">src</a>), <a href="lab08-64bit/Makefile.html">Makefile</a> (<a href="lab08-64bit/Makefile">src</a>), <a href="lab08-64bit/mergeSort.s.html">mergeSort.s</a> (<a href="lab08-64bit/mergeSort.s">src</a>), <a href="lab08-64bit/testMergeSort.cpp.html">testMergeSort.cpp</a> (<a href="lab08-64bit/testMergeSort.cpp">src</a>)</li>
<li>Readings (which is also the tutorial): the C++/assembly tutorial, which consists of reading <a href="https://www.cs.cmu.edu/~fp/courses/15213-s07/misc/asm64-handout.pdf">x86-64 Machine-Level Programming</a> from CMU</li>
</ul></li>
<li><del><a href="lab08-32bit/index.html">32-bit version of the lab, from previous years</a></del></li>
</ul></li>
</ul>
<p> </p>
<ul>
<li>Lab 9: x86 (assembly), part 2: in 32-bit and 64-bit versions
<ul>
<li><a href="lab09-64bit/index.html">64-bit version of the lab</a>
<ul>
<li>Readings: the two x86 book chapters: <a href="../book/x86-64bit-asm-chapter.pdf">x86 Assembly</a> and <a href="../book/x86-64bit-ccc-chapter.pdf">The x86 C Calling Convention</a></li>
</ul></li>
<li><del><a href="lab09-32bit/index.html">32-bit version of the lab, from previous years</a></del></li>
<li>For both labs:
<ul>
<li>Source code: <a href="lab06/code/timer.cpp.html">timer.cpp</a> (<a href="lab06/code/timer.cpp">src</a>) and <a href="lab06/code/timer.h.html">timer.h</a> (<a href="lab06/code/timer.h">src</a>), both of which are from lab 6</li>
<li>The tutorial, for the post-lab, is the <a href="../tutorials/09-c/index.html">C tutorial</a>; you will need to implement the linkedlist.c program.</li>
</ul></li>
</ul></li>
</ul>
<p> </p>
<ul>
<li><a href="lab10/index.html">Lab 10: Huffman coding</a>
<ul>
<li>Source code
<ul>
<li>Binary heap code from the <a href="../slides/10-heaps-huffman.html">Heaps and Huffman slide set</a>: <a href="../slides/code/10-heaps-huffman/binary_heap.cpp.html">binary_heap.cpp</a> (<a href="../slides/code/10-heaps-huffman/binary_heap.cpp">src</a>), <a href="../slides/code/10-heaps-huffman/binary_heap.h.html">binary_heap.h</a> (<a href="../slides/code/10-heaps-huffman/binary_heap.h">src</a>), <a href="../slides/code/10-heaps-huffman/heap-test.cpp.html">heap-test.cpp</a> (<a href="../slides/code/10-heaps-huffman/heap-test.cpp">src</a>)</li>
<li>File I/O example: <a href="lab10/fileio.cpp.html">fileio.cpp</a> (<a href="lab10/fileio.cpp">src</a>)</li>
<li>In-lab skeleton code: <a href="lab10/inlab-skeleton.cpp.html">inlab-skeleton.cpp</a> (<a href="lab10/inlab-skeleton.cpp">src</a>)</li>
<li>Example encoded and decoded files are in the labs/lab10/examples/ directory, or as one <a href="lab10/examples.zip">examples.zip</a> file</li>
</ul></li>
</ul></li>
</ul>
<p> </p>
<ul>
<li><a href="lab11/index.html">Lab 11: Graphs</a>
<ul>
<li>Source code: <a href="lab11/middleearth.h.html">middleearth.h</a> (<a href="lab11/middleearth.h">src</a>), <a href="lab11/middleearth.cpp.html">middleearth.cpp</a> (<a href="lab11/middleearth.cpp">src</a>), <a href="lab11/fileio2.cpp.html">fileio2.cpp</a> (<a href="lab11/fileio2.cpp">src</a>), <a href="lab11/traveling-skeleton.cpp.html">traveling-skeleton.cpp</a> (<a href="lab11/traveling-skeleton.cpp">src</a>)</li>
<li>Data files: <a href="lab11/prelab-test-small.txt">prelab-test-small.txt</a>, <a href="lab11/prelab-test-full.txt">prelab-test-full.txt</a></li>
<li>The <a href="../tutorials/11-doxygen/index.html">Doxygen tutorial</a> and the necessary files for that: <a href="../tutorials/11-doxygen/average.cpp.html">average.cpp</a> (<a href="../tutorials/11-doxygen/average.cpp">src</a>)</li>
</ul></li>
</ul>
<p> </p>
<ul>
<li><a href="lab12/index.html">Lab 12: Conclusion</a>
<ul>
<li>The tutorial, for the pre-lab, is the <a href="../tutorials/12-objc/index.html">Objective C tutorial</a>, for which you will need the <a href="../tutorials/12-objc/helloworld.m.html">helloworld.m</a> (<a href="../tutorials/12-objc/helloworld.m">src</a>) file, and you will need to implement the linkedlist.c program.</li>
</ul></li>
</ul>
</body>
</html>