1 CS100J 16 March 2006 Arrays Reading: You are responsible for: Secs 8.1, 8.2, 8.3, 8.4 A decimal point I'm a dot in placeSlot machines Cash lost in 'em.

Slides:



Advertisements
Similar presentations
Use a dictionary to answer questions about spelling, syllabication, pronunciation, parts of speech, and definitions. Objectives Use an office reference.
Advertisements

DNA Replication and RNA Production Selent. Replication The process of copying DNA The two chains of nucleotides separate by unwinding and act as templates.
The Binary Numbering Systems
© Trainer Bubble. Cryptic anagram puzzles (the clues are in the questions): dirty room here come dots lost.
New Curriculum 2014 Year 1 Parent Guide. Marsden Infant & Nursery School has published two booklets to help parent and carers understand the end of year.
Najakka Hargrove Read 7140 OWA
1 CS100J 27 March 2007 Algorithms on arrays Reading: 8.3–8.5 Please punctuate this: Dear John, I want a man who knows what love is all about you are generous.
1 CS100J 15 March, 2006 The while loop and assertions Read chapter 7 on loops. The lectures on the ProgramLive CD can be a big help. Some anagrams A decimal.
1 CS100J 29 March 2007 Arrays: searching & sorting. Reading: 8.5 Why did I get a Christmas Card on Halloween? Searching and sorting algorithms are on the.
The Structure of DNA Mendel Watson Chapter 12.2 Crick Franklin.
DNA. Objective: SWBAT remember the basic components and structure of DNA Warm-up: What comes to mind when you see DNA?
CS2110 Recitation Week 8. Hashing Hashing: An implementation of a set. It provides O(1) expected time for set operations Set operations Make the set empty.
Bell Work: 1/22/13 Based on the figure to the left, which of the following statements best describes cross-pollination? A The stigma comes in contact with.
What is DNA? Nov. 5, Warm up: 1. What is DNA? 2. Why do we need to learn about it? Your answers should be on the notes page. You have one minute.
Tennessee Diploma Project: Tennessee’s Future 9-12 English Standard Awareness.
1 16 November Matlab Copied from the original document on file at the Smokey Valley Genealogical Society and Library in Salina, KS, and reprinted by The.
DNA structure is the same in all organisms.
Chromosomes and DNA Replication
Tennessee Diploma Project: Tennessee’s Future 9-12 English Standard Awareness.
The Turing machine Olena Lastivka. Definition Turing machine is a theoretical device that manipulates symbols on a strip of tape according to a table.
1 CS March 2010 Read: Sec and chapter 7 on loops. The lectures on the ProgramLive CD can be a big help. Some anagrams A decimal pointI'm.
1 CS100J 31 October 2006 Arrays: searching & sorting. Reading: 8.5 Merry Christmas!! On Halloween? Searching and sorting algorithms are on the course website.
Language Conventions Quick Quiz???. 8th Grade Grammar From 1895?
CS November 2010 Developing array algorithms. Reading: Haikus (5-7-5) seen on Japanese computer monitors Yesterday it worked. Today it is.
No Excuses The 5 Effective Practices for High Performing, High Poverty Schools.
1 CS100J 18 October 2005 Arrays Reading: You are responsible for: Secs 8.1, 8.2, 8.3, 8.4 A decimal point I'm a dot in placeSlot machines Cash lost in.
The Secret Code. Genes Genes, which are sections of DNA, are known to: –Carry information from one generation to the next. –Put that information to work.
Have Your DNA and Eat It Too I will be able to describe the structure of the DNA molecule I will be able to explain the rules of base pairing I will understand.
Copyright Pearson Prentice Hall 12-2 Chromosomes and DNA Replication 12–2 Chromosomes and DNA Replication.
1 CS100J 13 October 2005 Arrays. Reading: Secs 8.1, 8.2, 8.3. Please listen to the following lectures on loops on your Plive CD. They are only 2-3 minutes.
1 CS100J 29 March 2005 Arrays Reading: You are responsible for: Secs 8.1, 8.2, 8.3, 8.4 A decimal point I'm a dot in placeSlot machines Cash lost in 'em.
1 CS100J 06 March 2008 Read: Sec and chapter 7 on loops. The lectures on the ProgramLive CD can be a big help. Some anagrams A decimal pointI'm.
CS100A, Fall Review of loops 1 CS100A, Fall 1998, Review of Loops and Loop Invariants Some students are still having trouble understanding loop invariants.
DNA Molecular basis of heredity How much DNA is in my body?  DNA is found in every cell (except red blood cells)  Each cell contains roughly 2 meters.
DNA. Biomolecules – Remember 1.Carbohydrates 2.Lipids 3. Nucleic acids – hold genetic information; code for proteins 4.Proteins.
Unit 7 (A)-DNA Structure Learning Targets I can describe the role that Wilkins, Franklin, Watson, and Crick had in the discovery of the structure of DNA.
GENETICS. Objectives: Objective 10- Identify the differences between DNA & RNA. Objective Identify the mechanisms through which DNA can be mutated.
CORRECTNESS ISSUES AND LOOP INVARIANTS Lecture 8 CS2110 – Fall 2014.
8.3 DNA Replication TEKS 3E, 5A, 9C The student is expected to: 3E evaluate models according to their limitations in representing biological objects or.
DNA function and structure. History Francis Crick and James Watson first described the structure of DNA in They received the Nobel Prize for this.
PIONEER SCIENCE ON THE PRAIRIE: Exploring our Roots Cathy Ezrailson, Associate Professor of Science Education University of South Dakota.
BRAINSTORM In your group, brainstorm all your ideas about DNA. Include What is DNA? Where is DNA found? What is its function? Start Timer
Post-Grad, World Trade Center Universities: 16 years
Lesson Overview 12.2 The Structure of DNA.
HW: IP: DNA Wednesday March 8, 2017 I can: Agenda (10) Catalyst
Use a dictionary to answer questions about spelling, syllabication, pronunciation, parts of speech, and definitions. Objectives Use an office reference.
Orientation for the Resource Learning Center Part 5
DNA: The Genetic Material
Life’s Instruction Manual or What Genes are Made Of
DNA The Blueprint of Life.
CS100J 30 October 2007 Algorithms on arrays Reading: 8.3–8.5
Using Standardized Achievement Data for School Improvement Planning
CS October 2009 Read: Sec and chapter 7 on loops. The lectures on the ProgramLive CD can be a big help. Some anagrams A decimal point I'm.
Nelson Mandela South Africa's anti-apartheid revolutionary
Forensic DNA Analysis DNA Replication.
Bell ringer- get ready for your quiz
THE INSTRUCTION MANUEL FOR BUILDING A BODY
The Wonderful World of DNA
DNA, RNA Replication, Transcription, Translation
Life’s Instruction Manual or What Genes are Made Of
KEY CONCEPT DNA replication copies the genetic information of a cell.
P4 Sight Words.
CHROMOSOMES & DNA REPLICATION HMD Bio CH 8 (miller-levine 12.2)
Mapping Ocean Temperatures Today’s date
2/26 Objective: Explain the structure and function of DNA and the process of Replication. DMA: Read the O.J. Simpson- A Mountain of Evidence article.
Cell Organelles Review
KEY CONCEPT DNA replication copies the genetic information of a cell.
CHAPTER 69 NUMBER SYSTEMS AND CODES
CS100J 16 Oct, 2007 Assignment A5: loops
CS October 2010 Read: Sec and chapter 7 on loops. The lectures on the ProgramLive CD can be a big help. Some anagrams A decimal point I'm.
Presentation transcript:

1 CS100J 16 March 2006 Arrays Reading: You are responsible for: Secs 8.1, 8.2, 8.3, 8.4 A decimal point I'm a dot in placeSlot machines Cash lost in 'em Animosity Is no amityParishionersI hire parsons Debit card Bad creditSchoolmasterThe classroom Desperation A rope ends it Statue of libertyBuilt to stay free Dormitory Dirty roomThe Morse code Here come dots Eleven plus two Twelve plus oneVacation timesI’m not as active Evangelist Evil's agentFuneralReal fun The earthquakes That queen shakeIntoxicateExcitation Mother-in-law Woman hitlerWestern Union No wire unsent Ronald Wilson Reagan Insane Anglo Saxon warlord Snooze alarms Alas! No more Z's Victoria, England’s queen Governs a nice quiet land William Shakespeare I am a weakish speller William Shakespeare We all make his praise Some Anagrams (permutations of sequences of letters)

2 Today Look at horizontal notation for writing assertions about arrays. Develop several functions that process arrays. The idea is to help you learn how to develop algorithms. Write a function to tell whether two arrays are equal. Write a function to copy an array. Write a function to tell whether two DNA sequences are complements of each other. Look at storing a table of values in a Java array. including adding a value to the table, deleting the last value of the table, deleting some other value from the table. The material on tables is in Sec. 8.4 of course text.

3 Deoxyribonucleic acid (DNA) is the building block of all life. Each DNA strand consists of two strings of bases twisted together to form a double helix. The 4 possible bases are represented by G, A, T and C. In a helix, A and T bond together, as do C and G. The two sequences in a helix are complements. For example, these two sequences are complements of each other: sequence 1:ACGTTAC sequence 2:TGCAATG Paired bases meet at an angle. DNA is a very large molecule; the image shows only a tiny fraction of the typical molecule. For the bacterium Escherichia coli, the image would be 80 kilometers long. For a typical piece of DNA from an eukaryote cell, the image would stretch from Dallas to Washington, D. C.! DNA is not fully stretched out inside a cell but is wound around proteins, which protect the DNA. Taken from

4 Horizontal notation for arrays, strings, Vectors Example of an assertion about an array b. It asserts that: 1.b[0..k–1] is sorted (i.e. its values are in ascending order) 2.Everything in b[0..k–1] is ≤ everything in b[k..b.length–1] b = 0 k b.length b = 0 k b.length 1.b[0..k] is sorted (i.e. its values are in ascending order) 2.Everything in b[0..k] is ≤ everything in b[k+1..b.length–1]

5 Maintain a table of values in an array int[] b= new int[5000]; // The n values in the table are in b[0..n–1] int n= 0; // 0 ≤ n <= 5000 b table of values this part is unused 0 n b.length As a program executes, it may have to maintain a table of values, say temperatures, within an array. The table will start out empty; then values will be added to it. We must say where in the array the values are stored. // Add t to the table: b[n]= t; n= n+1; // Delete last element of table // (assuming it exists). n= n –1;

6 Maintain a table of values in an array b table of values this part is unused 0 j n b.length // Delete value b[j] from the table. If the order of values in the table doesn’t matter: n= n–1; b[j]= b[n]; If the order of values in table does matter: n= n–1; // Move b[j+1..n] to b[j..n–1] // inv: b[j+1..k–1] have been moved for (int k= j+1; k–1 != n; k= k+1 ) { b[k–1]= b[k]; }

7 An 8th grade test from 1895 Remember when grandparents and great-grandparents stated that they only had an 8th grade education? Below is is the eighth-grade final exam from 1895 in Salina, Kansas, USA. It was taken from the original document on file at the Smokey Valley Genealogical Society and Library in Salina, KS, and reprinted by the Salina Journal. 8th Grade Final Exam: Salina, KS (This was a 5-hour test!)

8 An 8th grade test from 1895 Grammar (Time, one hour) 1. Give nine rules for the use of capital letters. 2. Name the parts of speech and define those that have no modifications. 3. Define verse, stanza and paragraph. 4. What are the principal parts of a verb? Give principal parts of "lie," "play," and "run”. 5. Define case; Illustrate each case. 6. What is punctuation? Give rules for principal marks of punctuation Write a composition of about 150 words and show therein that you understand the practical use of the rules of grammar.

9 An 8th grade test from 1895 Arithmetic (Time, 1.25 hours) 1. Name and define the Fundamental Rules of Arithmetic. 2. A wagon box is 2 ft. deep, 10 feet long, and 3 ft. wide How many bushels of wheat will it hold? 3. If a load of wheat weighs 3942 lbs., what is it worth at 50cts/bushel, deducting 1050 lbs. for tare? 4. District No. 33 has a valuation of $35,000. What is the necessary levy to carry on a school seven months at $50 per month, and have $104 for incidentals? 5. Find the cost of 6720 lbs. coal at $6.00 per ton. 6. Find the interest of $ for 8 months and 18 days at 7 percent. 7. What is the cost of 40 boards 12 inches wide and 16 ft. long at $20 per metre? 8. Find bank discount on $300 for 90 days (no grace) at 10 percent. 9. What is the cost of a square farm at $15 per acre, the distance of which is 640 rods? 10. Write a Bank Check, a Promissory Note, and a Receipt.

10 An 8th grade test from 1895 U.S. History (Time, 45 minutes) 1. Give the epochs into which U.S. History is divided. 2. Give an account of the discovery of America by Columbus. 3. Relate the causes and results of the Revolutionary War. 4. Show the territorial growth of the United States. 5. Tell what you can of the history of Kansas. 6. Describe three of the most prominent battles of the Rebellion. 7. Who were the following: Morse, Whitney, Fulton, Bell, Lincoln, Penn, and Howe? 8. Name events connected with the following dates: 1607, 1620, 1800, 1849, 1865.

11 An 8th grade test from 1895 Orthography (Time, one hour) Do we even know what this is?? 1. What is meant by the following: Alphabet, phonetic, orthography, etymology, syllabication? 2. What are elementary sounds? How classified? 3. What are the following, and give examples of each: Trigraph, subvocals, diphthong, cognate letters, linguals 4. Give four substitutes for caret 'u.' (HUH?) 5. Give two rules for spelling words with final 'e.' Name two exceptions under each rule. 6. Give two uses of silent letters in spelling. Illustrate each. 7. Define the following prefixes and use in connection with a word: bi, dis, mis, pre, semi, post, non, inter, mono, sup. 8. Mark diacritically and divide into syllables the following, and name the sign that indicates the sound: card, ball, mercy, sir, odd, cell, rise, blood, fare, last. 9. Use the following correctly in sentences: cite, site, sight, fane, fain, feign, vane, vain, vein, raze, raise, rays. 10. Write 10 words frequently mispronounced and indicate pronunciation by use of diacritical marks and by syllabication.

12 An 8th grade test from 1895 Geography (Time, one hour) 1. What is climate? Upon what does climate depend? 2. How do you account for the extremes of climate in Kansas? 3. Of what use are rivers? Of what use is the ocean? 4. Describe the mountains of North America. 5. Name and describe the following: Monrovia, Odessa, Denver, Manitoba, Hecla, Yukon, St. Helena, Juan Fernandez, Aspinwall and Orinoco. 6. Name and locate the principal trade centers of the U.S. 7. Name all the republics of Europe and give the capital of each. 8. Why is the Atlantic Coast colder than the Pacific in the same latitude? 9. Describe the process by which the water of the ocean returns to the sources of rivers. 10. Describe the movements of the earth. Give the inclination of the earth.