Data Structure Min Chen School of Computer Science and Engineering Seoul National University.

Slides:



Advertisements
Similar presentations
What is Computer Software?. Hardware vs Software Got to have both to get the job done!
Advertisements

Windows Test Review.
Michael Alves, Patrick Dugan, Robert Daniels, Carlos Vicuna
Min Chen School of Computer Science and Engineering Seoul National University Data Structure: Chapter 9.
Computer Science & Engineering 2111 Text Functions 1CSE 2111 Lecture-Text Functions.
Hte internets maze game.
Data Structures: A Pseudocode Approach with C 1 Chapter 6 Objectives Upon completion you will be able to: Understand and use basic tree terminology and.
CSE 380 – Computer Game Programming Pathfinding AI
Discovering Computers Fundamentals, Third Edition CGS 1000 Introduction to Computers and Technology Fall 2006.
Huffman Encoding Dr. Bernard Chen Ph.D. University of Central Arkansas.
Lecture 10 : Huffman Encoding Bong-Soo Sohn Assistant Professor School of Computer Science and Engineering Chung-Ang University Lecture notes : courtesy.
Introduction to GTECH 201 Session 13. What is R? Statistics package A GNU project based on the S language Statistical environment Graphics package Programming.
Compression & Huffman Codes
Midterm 2 Overview Fawzi Emad Chau-Wen Tseng Department of Computer Science University of Maryland, College Park.
UMass Lowell Computer Science Analysis of Algorithms Prof. Karen Daniels Fall, 2001 Lecture 1 (Part 3) Tuesday, 9/4/01 Greedy Algorithms.
Original Tree:
1 Dijkstra's Shortest Path Algorithm Find shortest path from s to t. s 3 t
Computer Science - I Course Introduction Computer Science Department Boston College Hao Jiang.
Compression & Huffman Codes Fawzi Emad Chau-Wen Tseng Department of Computer Science University of Maryland, College Park.
UMass Lowell Computer Science Analysis of Algorithms Prof. Karen Daniels Spring, 2002 Lecture 1 (Part 3) Tuesday, 1/29/02 Design Patterns for Optimization.
CISC220 Fall 2009 James Atlas Nov 13: Graphs, Line Intersections.
Introducing Computer Science in the Classroom
Chapter 8 Managing Files.
Huffman Codes Message consisting of five characters: a, b, c, d,e
Computer Science & Engineering 2111 Data Validation and Macros 1 CSE 2111 Lecture-Data Validation and Macros.
Linux Shell. 2 Linux Command-Line Interface ■ Linux shells: A shell is a command interpreter that allows you to type commands from the keyboard to interact.
1 Project 7: Huffman Code. 2 Extend the most recent version of the Huffman Code program to include decode information in the binary output file and use.
Chapter 2 Source Coding (part 2)
Min Chen School of Computer Science and Engineering Seoul National University Data Structure: Chapter 7.
Memory & Storage Architecture Seoul National University GDB commands Hyeon-gyu School of Computer Science and Engineering.
Using Dijkstra’s Algorithm to Find a Shortest Path from a to z 1.
Computer basics Lesson 4 – Programs & S.O..
What is Computer Software?. Hardware vs Software Got to have both to get the job done!
UDoCument: Electronic Scrapbook for the Information Era Soufiane Berouel, Undergraduate Student Supervised by Prof. Lily Liang Department of Computer Science.
Lecture Objectives  To learn how to use a Huffman tree to encode characters using fewer bytes than ASCII or Unicode, resulting in smaller files and reduced.
CS-2852 Data Structures LECTURE 13B Andrew J. Wozniewicz Image copyright © 2010 andyjphoto.com.
Min Chen School of Computer Science and Engineering Seoul National University Data Structure: Chapter 10.
A Genetic Solution to the Travelling Salesman Problem Ryan Honig.
Min Chen School of Computer Science and Engineering Seoul National University Data Structure: Chapter 8.
CS 111 – Sept. 10 Quiz Data compression –text –images –sounds Commitment: –Please read rest of chapter 1. –Department picnic next Wednesday.
Huffman Coding and Decoding TAIABUL HAQUE NAEEMUL HASSAN.
“Planning is bringing the future into the present so that you can do something about it now.” – Alan Lakein Thought for the Day.
For Wednesday No reading No homework There will be homework for Friday, as well the program being due – plan ahead.
Chapter 1 : The Linux System Part 2 Lecture 2 11/14/
1.  Microsoft DOS (Disk Operating System) use a command line user interface.command line  A command line user interface means that the user is required.
Graphical User Interface You will be used to using programs that have a graphical user interface (GUI). So far you have been writing programs that have.
BOĞAZİÇİ UNIVERSITY DEPARTMENT OF MANAGEMENT INFORMATION SYSTEMS MATLAB AS A DATA MINING ENVIRONMENT.
Chapter 4. Drive – The largest storage area. The C: Drive is usually the hard drive, but you can have other drives on your network or on a separate device.
Ch22.Branch and Bound.
Ben Stöver Winter term 2014/2015 Command line and batch files Molekular Phylogenetics – Practical.
NET 222: COMMUNICATIONS AND NETWORKS FUNDAMENTALS ( NET 222: COMMUNICATIONS AND NETWORKS FUNDAMENTALS (PRACTICAL PART) Tutorial 2 : Matlab - Getting Started.
Huffman Coding The most for the least. Design Goals Encode messages parsimoniously No character code can be the prefix for another.
1Computer Sciences Department. 2 Advanced Design and Analysis Techniques TUTORIAL 7.
Lecture 12 Huffman Algorithm. In computer science and information theory, a Huffman code is a particular type of optimal prefix code that is commonly.
Greedy Algorithms Analysis of Algorithms.
Properties: -The value in each node is greater than all values in the node’s subtrees -Complete tree! (fills up from left to right) Max Heap.
Introductory Lecture. What is Discrete Mathematics? Discrete mathematics is the part of mathematics devoted to the study of discrete (as opposed to continuous)
Compression & Huffman Codes
An Introduction to Computers and Visual Basic
                                      Practical Examples Synchronisation Pitfalls Keith Merrington APP01.
IB Computer Science Topic 2.1.1
Topic 14 Algorithm Families.
Data Structure and Algorithms
Java for Beginners University Greenwich Computing At School DASCO
105-1 Data Structure Homework 1
Podcast Ch23d Title: Huffman Compression
The Shortest Path Algorithm
Algorithms CSCI 235, Spring 2019 Lecture 31 Huffman Codes
105-1 Data Structure Homework 1
ME 123 Computer Applications I Lecture 7: Basic Functions 3/20/03
Presentation transcript:

Data Structure Min Chen School of Computer Science and Engineering Seoul National University

Project 1: Peg Solitaries  Requirements: Design a Peg Solitaries Game

Project 1: Specification  GUI Either command line or graphic interface Better GUI will get incentive *** *** ******* ***O*** ******* *** *** Move (a,b) to (c,d)

Project 1: Specification  System Design Chessboard Class ○ Display the chessboard and chessman ○ Display the deletion of each move Judgment System ○ If one move is valid ○ If game ended Solution Algorithm ○ Calculate the solution for the game

Project 2: Path Discovery  Requirements: Create a random maze Discover a shortest path in a maze  GUI Either command line or graphic interface Better GUI will get incentive

Project 2: Specification  Create the maze Line MazeBlock Maze Entrance Exit I O

Project 2: Specification  Discover the shortest path I O X X XXXX X XX X XX X XX X XX X XX X XX X XX X XX XX X X X X X A Breadth-First Approach

Project 3: Compress  Requirements: Give a txt file ○ Contains 52 English letters (‘a’-’z’)&(‘A’-’Z’) ○ Contains ‘ ’(blanks), ‘,’ (commas), ‘.’(periods) ○ Contains numbers (‘0’-’9’) Compress the txt file by Huffman Codes ○ The compressed file should be smaller than original file Uncompress the file into original txt file ○ Should restore the original file

Project 3: Specification  How to calculate the Huffman Codes? ① Statistics of occurrence times of each char ② Form the Huffman Tree ③ Get the Huffman Codes from the tree

Principles  Don’t Copy Codes from Internet  Try your best for a better solution!