Syllabus: CS 4104
Data and Algorithm Analysis
Spring, 2013
1
General Course Information
CRN
Meeting Time
Classroom
Final Exam
12117
8:00 AM9:15 AM; Tuesdays and Thursdays
340 Lavery Hall
Friday, May 10, 7:459:45
Instructor: Lenwood S. Heath
Oce: 2160J To
CS4104: Algorithm and Data Analysis
Sharath Raghvendra
Assistant Professor, Dept. of Computer Science,
Virginia Tech
Fall 2015
Agenda
Today
Continue Segment Intersection Problem
Project Details and document will be released by tomorrow.
Next Lecture
CS4104: Algorithm and Data Analysis
Sharath Raghvendra
Assistant Professor, Dept. of Computer Science,
Virginia Tech
Fall 2015
Logistics
Quiz starts at 4:30
Minimizing Lateness
Single resource processing one job at a time
Job requires units of processi
CS4104: Algorithm and Data Analysis
Sharath Raghvendra
Assistant Professor, Dept. of Computer Science,
Virginia Tech
Fall 2015
Quiz 2
Performance was generally on the lower side
Scores above 14 are satisfactory.
Anyone with single digit score was unpre
CS4104: Algorithm and Data Analysis
Sharath Raghvendra
Assistant Professor, Dept. of Computer Science,
Virginia Tech
Fall 2015
Logistics
Homework 2 released. Due on 28th September.
Work in groups of three.
5 questions with varying levels of difficulty
CS4104: Algorithm and Data Analysis
Sharath Raghvendra
Assistant Professor, Dept. of Computer Science,
Virginia Tech
Fall 2015
Logistics
Project Phase 1 to be released on 7th ; due on 25th
Homework 3 to be released on 7th ; Due on 14th
Exam on the 19th
CS4104: Algorithm and Data Analysis
Sharath Raghvendra
Assistant Professor, Dept. of Computer Science,
Virginia Tech
Fall 2015
Logistics
Project Phase 1 to be released on 7th ; due on 25th
Homework 3 to be released on 7th ; Due on 14th
Exam on the 19th
CS4104: Algorithm and Data Analysis
Sharath Raghvendra
Assistant Professor, Dept. of Computer Science,
Virginia Tech
Fall 2015
Exam
19th October, 2015 4:00-5:15
Three Questions (100 points)
Question 1 (50 points): 10 small questions which quiz your und
CS4104: Algorithm and Data Analysis
Sharath Raghvendra
Assistant Professor, Dept. of Computer Science,
Virginia Tech
Fall 2015
Agenda
Last Lecture
Greedy Algorithms Introduction
Dijkstras algorithm
This Lecture
Greedy algorithms for Minimum Spanning
CS4104: Algorithm and Data Analysis
Sharath Raghvendra
Assistant Professor, Dept. of Computer Science,
Virginia Tech
Fall 2015
Agenda
Today
Range-Searching Data Structure (K-D Trees, Range Trees)
After that
Dynamic Programming
Flow Algorithms
NP-Com
CS4104: Algorithm and Data Analysis
Sharath Raghvendra
Assistant Professor, Dept. of Computer Science,
Virginia Tech
Fall 2015
Logistics
Quiz 1 Grades
Students with scores 18 do not seem to have the pre-requisite background
Similar performance in exams
CS4104: Algorithm and Data Analysis
Sharath Raghvendra
Assistant Professor, Dept. of Computer Science,
Virginia Tech
Fall 2015
Logistics
Attendance Policy
Everyone marks their attendance
12 randomly chosen students will have to verify their attendance
CS4104: Algorithm and Data Analysis
Sharath Raghvendra
Assistant Professor, Dept. of Computer Science,
Virginia Tech
Fall 2016
Logistics
No class next week (Work on your homework)
For this homework, work in groups of 2 (optional) and submit one
homework
CS4104: Data and Algorithm Analysis
Sharath Raghvendra
Assistant Professor, Dept. of Computer Science,
Virginia Tech
Fall 2016
Agenda
Introduction and Course Logistics
Course Objectives
Example
CS4104: Data and Algorithm Analysis
Instructor: Dr. Shara
CS4104: Algorithm and Data Analysis
Sharath Raghvendra
Assistant Professor, Dept. of Computer Science,
Virginia Tech
Fall 2016
Logistics
Homework 1 released. Check Piazza
There is still a discrepancy in the number of students on piazza and the
number of
CS4104: Algorithm and Data Analysis
Sharath Raghvendra
Assistant Professor, Dept. of Computer Science,
Virginia Tech
Fall 2016
Grading
You will definitely get at least a
A if you get 95+
A- if you get 92+
B+ if you get 88+
B if you get 85+
B- if you get
CS4104: Algorithm and Data Analysis
Sharath Raghvendra
Assistant Professor, Dept. of Computer Science,
Virginia Tech
Fall 2016
Logistics
Homework 2 to be released tomorrow; Due on 21st September.
Agenda
Today
Closest-Pair Problem
Next Lecture
Divide
Homework 2
CS 4104 (Fall 2015)
Homework is due on September 28th. Work in groups of three and submit one set of solutions per group.
Recall a denition from class: in a graph G(V, E), given a non-empty set S V of nodes, cut(S) is the
set of edges such that
CS4104: Algorithm and Data Analysis
Sharath Raghvendra
Assistant Professor, Dept. of Computer Science,
Virginia Tech
Fall 2015
Agenda
Introduction and Course Logistics
Objective of the course
Importance of proofs
CS4104: Algorithm and Data Analysis
In
CS4104: Algorithm and Data Analysis
Sharath Raghvendra
Assistant Professor, Dept. of Computer Science,
Virginia Tech
Fall 2015
Agenda
Design of Algorithm An Example
Comparing Algorithms The Big-O notation
The Problem
Recollect Fibonacci sequence:
0, 1,
CS4104: Algorithm and Data Analysis
Sharath Raghvendra
Assistant Professor, Dept. of Computer Science,
Virginia Tech
Fall 2015
Agenda
Last Lecture
BFS properties and applications
This Lecture
Greedy Algorithms An introduction
Dijkstras algorithm
Pro
CS4104: Algorithm and Data Analysis
Sharath Raghvendra
Assistant Professor, Dept. of Computer Science,
Virginia Tech
Fall 2015
Agenda
Today
Divide and Conquer Algorithms
Counting Inversions
Integer Multiplication
After that
We will discuss solutions