100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.2 TrustPilot
logo-home
Summary

Summary Data Structures 1 & UNIX terminal use and commands in CSC2001F

Rating
5,0
(2)
Sold
1
Pages
58
Uploaded on
24-01-2022
Written in
2021/2022

This document comprises of everything you need to know about linux terminal; how to use it, set it up and the commands you need to know to make use of the terminal. There is also an important test on the commands - in our year, if you don't get 80%, you don't get DP. The notes then move onto data structures 1 of 2 in the course, covering what a data structure is, going into analysis of algorithms, time complexities and Big O. This is further divided into binary trees, binary search trees, AVL trees, red-black trees and Hash tables, where all these concepts of efficiency are applied to each algorithm. The source code is also provided for each algorithm, which is examinable. I obtained 81% for the course and can guarantee these notes will help you get there too.

Show more Read less











Whoops! We can’t load your doc right now. Try again or contact support.

Document information

Uploaded on
January 24, 2022
Number of pages
58
Written in
2021/2022
Type
Summary

Content preview

{CSC2001F}
[Chloe Walt] [Year 2, Semester 1, 2021]

Unix and Data Structures 1




Chloe Walt

WLTCHL002 |

,1. Unix: 2 - 15

- Terminal
- Makefiles
- Git
- commands
- Shell/ Bash scripting

2. Data Structures: 16 - 57

2.1 Analysis of algorithms 16 - 22
- What is a data structure?
- Operations
- Best, Worst and Average case time complexities
- Algorithms - First Principles

2.2 Binary Trees 22 - 30
- Terminology
- Operations
- Traversal
- Complexity Analysis

2.3 Binary Search Trees 31 - 38
- Operations
- Analysis

2.4 AVL Trees 39 - 45
- What is it?
- Operations
- Rotations

2.5 Red-Black Trees 46 - 47
- Explanation
- Analysis
- operations

2.6 Hash Tables 48 - 57
- Trivial Hash Table
- Issues of Hash Tables
- Hash Function 1
- Hash Function 2
- Good Hash Functions
- Collision resolution
- Linear Probing
- Quadratic Probing
- Chaining


1

,TOPIC 1: UNIX
Development tools:
- When you don't have an IDE, you need to use development tools such as:

1. Text editor
2. Compilers
3. Makefile and git
4. Debuggers.

CREATING A FOLDER AND A CLASS:

1. joe HelloWorld.java -> Create a new file in joe. Name the class how you want
- control k x will save and exit the file

2. in terminal: ls -> lists files in a particular directory




3. mkdir HelloWorld-> make directory (This will be the folder name)

4. mv HelloWorld.java HelloWorld/ - > saving HelloWorld.java in directory HelloWorld

5. cd HelloWorld/

6. ls -l : shows class

7. java HelloWorld: compiles and prints code on screen




2

, i.e. Write Testing class. control-k-x to save and close.




BUILDING LARGE PROJECTS:

How do we efficiently compile larger projects without and IDE?

TOOLS: ant & make

1. ant (from apache)
- Java application to manage (Java) targets/ dependencies
- Uses XML for dependency
- pros: handles inner classes/ package dependencies easily
- cons: don't use it for other development purposes

2. make
- UNIX application - not designed for java (works best for C++)
- uses a text file that lists dependencies
- cons: issues with java inner classes
- use make with a configuration Makefile

make -f makefilename




3

Reviews from verified buyers

Showing all 2 reviews
2 year ago

3 year ago

5,0

2 reviews

5
2
4
0
3
0
2
0
1
0
Trustworthy reviews on Stuvia

All reviews are made by real Stuvia users after verified purchases.

Get to know the seller

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
chloewalt University of Cape Town
View profile
Follow You need to be logged in order to follow users or courses
Sold
24
Member since
3 year
Number of followers
12
Documents
36
Last sold
2 weeks ago

4,8

6 reviews

5
5
4
1
3
0
2
0
1
0

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their exams and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can immediately select a different document that better matches what you need.

Pay how you prefer, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card or EFT and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Frequently asked questions