Computer Science Notes
Computer Science Notes
בס"ד
Compsci Notes!!!!!!
*Note-the first part of the curriculum is on paper in my binder (hand-written!!)
01.Consensus building-the process of reaching an agreement with all team
members
development
13. Procedural Abstraction-a way of organizing big codes by breaking
a. The reason code segments are good is b/c it breaks PA down
b. Instead of stressing about little details, you focus on what the
procedure does
c. You create a function to do a specific task
d.You don’t need to remember how it works to use it, just what it
does
e. Makes code simpler, reusable, easier to understand
f. Ex-you don’t need to put equation for solving diameter of circle into
calculator-just put in radius, it calculates it for you
🙂
g.You say what the function does, and the user clicks on it, the
computer performs it (easy-peasy )
i. If the function is on, it will print the output of the function
1. Ex-it will print the number of words in my essay if
that’s the function
h. Basically, it helps you reuse the same code over and over easily
14. Logic in Program Execution
17. You’re doing great!!!! Keep going!!!!!!
a. Here’s a joke to help you study- Why couldn’t Tommy fly the plane?
Cuz he doesn’t have arms! Why doesn’t Tommy have arms? Cuz he’s
a potato!!!!!
🙂
b. Now go get yourself at least 5 shots of espresso and then come
back and study the rest of this stuff
18. The Binary Number System (the zero-one thing)
a. Note-all the math we’re gonna do for the next few units is
ridiculously simple so u can skip this next section
b. *Hint-bi=2, so binary number system has just two digits, zero and
one
c. Every piece of data in the computer is represented by 0 and 1
i. 1 is “on,” yes electrical signal, and 0 is “off,” no electrical
signal
d.Byte-8 bits
i. One bit is one 0 or 1
ii. So a sequence of 8 bits (or numbers) is considered a byte
e. If you know there are 40 bits, divide by 8 to get how many bytes
(we love 3rd grade math!!!)
f. Why are they called bytes? That is the smallest amount of memory
a computer can store at a time (it “bites” the information)
i. It can store more than a byte, just not less
ii. Nibble- os and 1s that hang off a byte, and the computer
breaks it up and processes it (more on that later)
g.More on binary in the decimal system notes
h. A number in the binary system made up only of ones will always be
a power of two minus one (make sense?)
i. When a number is all ones, it will always equal the largest
number that can be represented by that amount of bits, so it
will be one less than the bit on top of it
1. Example- 111 will be one less than 1000
END TEST 1
19. The decimal system
בס"ד
a. as opposed to the binary system-we act like Mrs. Grabie and use
the actual position of the number
b. Explained- instead of saying 8 in the context of .08, we say 8
hundredths
i. Or instead of saying 6 in the number 867, we say 60
1. Basically, instead of saying 678, we say 600 + 70 + 8
ii. Each spot in the decimal system can go up to 9. (Like w/ real
numbers.) With the binary system, there’s only 0s and 1s. (I’m
confused too.)
c. Converting numbers to binary code- actually explained!
i. Basically, in the decimal system, 8 in the reference 800 would
be 8 x 10 exponent 2. So 872 would be 8(10 exp. 2) + 7(10
exp. 1) + 2(10 exp. 0) = 872.
ii. In the binary system, we do the same thing, just instead of
any number we use 0 and 1. So let's say we have 110. We do
the same exponent stuff, just with 2 instead of 10.
d.Here’s a good example to explain how the binary system works- in
the thousands place (8000,) we would use 2 exp. 3 instead of 10
exp. 3. To get 8 in binary, we need the thousands place, cuz 1 x 2
exp. 3=8. We go all the way up there b/c we can only multiply the
exponents by 1 or 0. So we go to the thousands place, and for the
numbers under that we just write 0. So, 8 would be 1000.
i. Basically, it’s super easy to get 1, 2, 4, 8, etc., b/c they’re
exact exponents of 2.
ii. To get a number that doesn’t equal an exact exponent of 2,
we just use more 1s, like to get 6, we add 4 and 2. So we
would do 110.
e. With all of that being true, with smaller numbers (like we saw that
8 is 1000,) we use less bits. But that’s not an entire byte! So we fill
in lots of 0s in the beginning to make it a whole byte.
20. Converting Decimals to Binary
🙂
a. This doesn’t need to be explained, just use your common sense and
figure it out
בס"ד
b. Explained anyway- Exponents of 2 (how the binary system is set
up) goes by the 2048 sequence of numbers. Just add all the
different numbers together until you get the number you want.
c. Everything added together is 255-max number you can get in one
byte
d.Measurements:
i. A kilobyte (KB) is 1000 bytes.
ii. A Megabyte (MB) is 1000 kilobytes. (Or a million bytes)
iii. A gigabyte (GB) is 1000 megabytes. (Or a billion bytes)
iv. A terabyte (TB) is 1000 GB. (Or a trillion bytes)
1. Kira Made Great Teams
21. Encoding (a code for non-numbers)
a. Unlike binary, which represents only numbers, this code can be used
for letters, sounds, etc.
b. It represents paragraphs as a sequence of numbers
c. Programmers agree that certain numbers represent certain things.
i. Example- like KTE encoding (not actually true)-a smiley face is
always represented by 01.
1. So if you want to do a smiley, you type 01. Everyone is
familiar with KTE encoding, and the computer uses KTE
encoding to type it
d.The computer can store documents, files, and drives with encoding
e. ASCII is one of the most standard encodings there are. It has a
chart with all the things it could say, translated into binary code.
i. Example- 72 is h, and 105 is i. So you put 72 105 in binary
code to say hi.
ii. Problems with ASCII:
1. ASCII only holds 7 bits, and computers store memory in
8 bits. It wastes space to keep adding zeros
2. ASCII only has 128 characters. What if I want to do
something that’s not in ASCII?
iii. How to solve them:
1. With the extra 8th place, some people used it as a
European character. But not everyone did that, so the
בס"ד
computers weren’t uniform. That caused issues, because
computers coded things incorrectly, because everyone
wanted different things from the computer with the
same place
f. In order to be able to have more information that can be coded,
they made a new code, called unicode.
22. Unicode
🙂
not the beginning part, it will always start with
🙂
10 (but u don’t need to know that )
e. With unicode, over a million things can be typed
בס"ד
f. A hexadecimal number is what unicode uses instead of binary,
where numbers and letters are recorded in exponents of 16 instead
of 2
g.Unicode is compatible with ASCII
h. UTF-8 is another name for unicode
23. The Internet
Schmooze- ט”ו ו
ה 'ו זות נ ותה בקש בתי בי כל ימי חיי ת שא "אחת
בה
The one thing I ask of Hashem, that I request/desire, is to sit in the House of Hashem all the days of my life, to
bask/gaze at the beauty of Hashem and to frequent His Temple.
Why does the pasuk use the double lashon of ask and request? Wouldn’t one be enough? The pasuk is hinting that you
just have to want to want to bask in the Glory of Hashem, or even to want to want to want to bask in the Glory of
Hashem as many as 20 times.
(Tehillim ד:כז:
HATZLACHA RABA!!!!!!
Emmy- Just got it almost by herself down the cheese mat, working on floor
Devorah- Working on her back handspring on the cheese mat
Eliana-has her back handspring on the cheese mat
Chana- doesn’t really jump enough, working on her back handspring on the cheese mat
Atara- Is only willing to do back walkovers
*Do round-off practices!
*Practice round-off stop back handsprings with girls who don’t have it themselves yet-will be easier for them to get it on
cheese mat
*Start double back handsprings for girls who have it connected
*Keep the aerial station
Beam-
*Practice handstands on the low beams by themselves
*Practice handstands on the high beam (I can maybe stand there if they need me) with the big red block
*If someone’s really good at handstands on the high beam with the red block, she should try it with a crash mat by the
lowest high beam
*Do a shorter warm-up
*Have a side handstand station at all times (even while working on other things like regular handstands)
*Work on form in their straight jumps and split jumps-side point
*Have a station rotation like on floor-learn faster & more efficient
Bars-
*Kip ups as a station (maybe not for everyone)
*Make the last bar for casts
*Do pull-overs with blocks on the lowest set of bars (maybe)
*Work on back hip circles with everyone
Rina, Aliza, Shani, Zissi, Vigayil, Elisheva, Draizy, Mali, Racheli,
בס"ד