Text Compression 1 Assigning 16 bits to each character in a document uses too much file space We need ways to store and transmit text efficiently Text.

Slides:



Advertisements
Similar presentations
John Byrd R. B. Wilcox, G. Huang, L. R. Doolittle
Advertisements

The Declaration of Independence The unanimous Declaration of the thirteen united States of America.
DIRECTIONS 1)Match the U.S. connection on the wall to the Enlightenment thinker using the matrix handout. 2)Identify the thinker’s idea that was used in.
Declaration of Independence
The Declaration of Independence
Dunmore’s Proclamation & the Declaration of Independence Africans in America and Offers of Freedom.
PARTS OF THE DECLARATION Preamble –“–“When in the course of human events…” Declaration of Rights –“–“We hold these truths to be self-evident” List of.
The Declaration of Independence The Declaration of Independence was signed on July 4, The main writer was Thomas Jefferson. The Declaration of Independence.
Locke’s Ideas in the Declaration of Independence.
Government and The State. Review What is the difference between government and politics? Government - The institution through which a society makes and.
Declaration of Independence (Revised Edition) Written by Mr. Sheehy, Based on the original by Thomas Jefferson.
The Declaration of Independence July 4, The Boston Massacre March 5, 1770 The Boston Massacre was not a massacre but actually a street fight between.
Syllogisms English 1301: Composition & Rhetoric I || D. Glen Smith, instructor.
Data Representation CS105. Data Representation Types of data: – Numbers – Text – Audio – Images & Graphics – Video.
John Locke ( ) An English philosopher of the Enlightenment “Natural rights” philosophy.
CS105 INTRODUCTION TO COMPUTER CONCEPTS DATA REPRESENTATION Instructor: Cuong (Charlie) Pham.
Chapter 3 Data Representation.
Chapter 3 Data Representation.
Data Representation and Gates These slides are taken from your textbook Dale & Lewis.
AP American Government. Preamble to the Constitution (1787) We the People of the United States, in Order to form a more perfect Union, establish Justice,
Chapter 3 Data Representation (slides modified by Erin Chambers)
The Declaration of Independence
 The “Enlightenment”, a period in Europe in the 17 th and 18 th centuries saw the development of new ideas about the rights of people and their relationship.
Name Country Published Work and Date Main Ideas Influence on U.S.
Today, we are paper boxing. Head the paper and title it “Natural Rights”. Title the back of your paper “Declaration Pledge”. In three of the four boxes,
 Activity: (Response Group) Students discuss 3 provocative questions about ideas and individuals, which helped shape America’s five founding ideals. 
Thomas Paine Thomas Jefferson and Government John Locke.
American Government C H A P T E R 2- Supplemental Origins of American Government.
Declaration of Independence Major Ideas/Breakdown.
Thinking About Gender. Woman with child and lambs, Photo by Laura Gilpin, 1932 Courtesy Amon Carter Museum.
Declaration of Independence. ___ Explain the events and conflicts leading up to the development of the Declaration of Independence ___ Bunker Hill ___.
Look in the Constitution. Articles I and II. According to the Declaration of Independence, we all have the right to the “pursuit of happiness.” What does.
Road to Independence Roots of Revolution  French and Indian War ( )  British Legislation and Colonial Response ( )  Formation of “American”
DBQ – Declaration of Independence
The Declaration of Independence The unanimous Declaration of the thirteen united States of America. When in the Course of human events it becomes necessary.
Chapter 03 Data Representation. 2 Chapter Goals Distinguish between analog and digital information Explain data compression and calculate compression.
 Remember back to the Declaration of Independence lessons in class. We talked about 5 ideals. Name those 5 ideals.  1.  2.  3.  4.  5.
Chapter 03 Data Representation. 2 Chapter Goals Distinguish between analog and digital information Explain data compression and calculate compression.
FOUNDING DOCUMENTS DECLARATION OF INDEPENDENCE PREAMBLE TO THE CONSTITUTION U.S. BILL OF RIGHTS.
Chapter 3 Data Representation. 2 Compressing Files.
Quiz Questions Declaration of Independence For all you Patriots who want your freedom from that tyrant King George III! 1. Who was the author of the Declaration.
The Declaration of Independence - The “Why” PARTICIPATION IN GOVERNMENT JOHNSTOWN HIGH SCHOOL MR. COX.
I. The Preamble When in the Course of human events, it becomes necessary for one people to dissolve the political bands which have connected them with.
Francisco de Goya, Execution of the Defenders of Madrid, May 3 rd, 1814 (Spodek 591)
Declaration of Independen ce in Congress July 4, 1776 Miss O.’s Class.
The Intellectual Foundations of the Holocaust. Thomas Hobbes Life in a state of nature was a “war of all against all” in which each person tries to take.
Declaration of Independence / “We hold these truths to be self-evident, that all men are created equal and are endowed by their Creator with certain unalienable.
歐盟法與生命文化 ( 二 ) 第六單元 Life Education of EU 李亮神父 基督正教會 ( 東正教會 ) 在臺希臘籍主教 1 【本著作除另有註明外,採取創用 CC 「姓名標示-非 商業性-相同方式分享」臺灣 3.0 版授權釋出】創用 CC 「姓名標示-非 商業性-相同方式分享」臺灣 3.0.
Women In the Public Sphere The Women’s Rights Movement of the 1840s.
John Locke, T. Paine, and Thomas Jefferson Debate with a Partner What is human nature? That is, what traits of personality and character, if any do all.
Chapter 03 Data Representation.
CSIS-110 Introduction to Computer Science
The Declaration of Independence
Selected Slides for the Constitution Unit
The Declaration of Independence
Instructor: Mark Chavira Americas High School El Paso, Texas
CS105 Introduction to Computer Concepts Data Representation
1-3: The American Revolution and Declaration of Independence
Declaration Of Independence.
Good morning! Today’s Agenda Syllabus
Good morning! Please get out your notes on American political philosophy and specific parts of the US Constitution. On a yellow sticky note list specific.
APUSH Major Primary Sources Period 3 ( )
September 24th TO DO: What is Locke talking about?
The Six Principles of Government
Good afternoon! Please find the Student Info Form and complete it.
We the people lesson 8 What basic ideas about government are in the Declaration of Independence?
e passage below is from a historical document.
Declaration of Independence
Declaration of Independence Beliefs
The Declaration of Independence
Presentation transcript:

Text Compression 1 Assigning 16 bits to each character in a document uses too much file space We need ways to store and transmit text efficiently Text compression techniques keyword encoding run-length encoding Huffman encoding

Keyword Encoding 2 Replace frequently used words with a single character

Keyword Encoding 3 Given the following paragraph, We hold these truths to be self-evident, that all men are created equal, that they are endowed by their Creator with certain unalienable Rights, that among these are Life, Liberty and the pursuit of Happiness. That to secure these rights, Governments are instituted among Men, deriving their just powers from the consent of the governed, That whenever any Form of Government becomes destructive of these ends, it is the Right of the People to alter or to abolish it, and to institute new Government, laying its foundation on such principles and organizing its powers in such form, as to them shall seem most likely to effect their Safety and Happiness.

Keyword Encoding 4 The encoded paragraph is We hold # truths to be self-evident, $ all men are created equal, $ ~y are endowed by ~ir Creator with certain unalienable Rights, $ among # are Life, Liberty + ~ pursuit of Happiness. $ to secure # rights, Governments are instituted among Men, deriving ~ir just powers from ~ consent of ~ governed, $ whenever any Form of Government becomes destructive of # ends, it is ~ Right of ~ People to alter or to abolish it, + to institute new Government, laying its foundation on such principles + organizing its powers in such form, ^ to ~m shall seem most likely to effect ~ir Safety + Happiness.

Keyword Encoding 5 What did we save? Original paragraph 656 characters Encoded paragraph 596 characters Characters saved 60 characters Compression ratio 596/656 = Could we use this substitution chart for all text?

Run-Length Encoding 6 A single character may be repeated over and over again in a long sequence Replace a repeated sequence with a flag character repeated character number of repetitions *n8 * is the flag character n is the repeated character 8 is the number of times n is repeated

Run-Length Encoding 7 Original text bbbbbbbbjjjkllqqqqqq+++++ Encoded text *b8jjjkll*q6*+5 (Why isn't l encoded? J?) The compression ratio is 15/25 or.6 Encoded text *x4*p4l*k7 Original text xxxxpppplkkkkkkk This type of repetition doesn’t occur in English text; can you think of a situation where it might occur?

Huffman Encoding 8 Why should the character “X" and "z" take up the same number of bits as "e" or " "? Huffman codes use variable-length bit strings to represent each character More frequently used letters have shorter strings to represent them

Huffman Encoding ballboard would be compression ratio 28/56 Encode roadbed 9

Huffman Encoding 10 In Huffman encoding no character's bit string is the prefix of any other character's bit string To decode look for match left to right, bit by bit record letter when a match is found begin where you left off, going left to right

Huffman Encoding 11 Decode Try it!

Huffman Encoding 12 Technique for determining codes guarantees the prefix property of the codes Two types of codes general, based on use of letters in English (Spanish, ….) specialized, based on text itself or specific types of text