CSE201, Spring 2012
Homework Set# 08
Solution
1. The Python function randPicture(row, column) in the sample file,
generates a row-pixel by column-pixel picture of random pixels.
a. Use randPicture(row
CSE201, Spring 2012
Homework Set# 09
Solution
1. Compress the following string using Lempel-Ziv encoding. Explicitly
mention what should be included in the compressed file:
761835155650884909989859982
CSE 201, Spring 2012
Homework Set # 04
Solution
1. Web-search and report on following terms
a. Malware
Malware, a portmanteau of the words malicious and software, is a
catch-all term for any software
CSE 201, Spring 2012
Homework Set # 03
Solution
1. Runthefollowingcodeandguesswhatitdoesbytryingseveral(atleast4)
inputs and seeing the output. Input m and n are assumed to be non
negative integers. P
CSE 201, Spring 2012
Homework Set # 02
Solution
1. Consider the following random experiment. You toss a fair coin 6 times in
a row, for each Head you make a dollar and with each Tail you lose a
dollar
CSE 201, Spring 2012
Homework Set # 06
Solution
1. Using the method discussed in class, convert (long hand)
a. Decimal (that is, base 10) 6060 to binary
6060 = 3030 x 2 + 0
3030 = 1515 x 2 + 0
1515 =
CSE 201, Spring 2012
Homework Set # 07
Solution
1. Web search and report the Unicode Code Point for each of the following
characters:
a. LATIN CAPITAL LETTER D
b. ARABIC LETTER QAF
c. BENGALI LETTER T
CSE201, Spring 2015
Homework Set# 14
Solution
1. How many color combinations are there if we use 12 bits to encode each
color component of RGB?
236 = 68,719,476,736 colors
2. The Python function randP
def ms(K,L):
if K = []:
return L
if L = []:
return K
F = []
while len(K) > 0 and len(L) > 0:
if K[0] < L[0]:
F.append(K[0])
K.pop(0)
else:
F.append(L[0])
L.pop(0)
if len(K) = 0 and len(L) = 0:
return
def strHist(x):
'
prints a histogram of characters in x, in order
'
s = set(list(x)
# getting rid of duplicates
s = list(s)
s.sort()
for char in s:
n = x.count(char)
h = '*'*n
print(char, h)
def phn()
CSE 201, Spring 2015
Homework Set # 12
Solution
1. In about 100 words, summarize the main points of Chapter 4 of the Text.
2. Web-search and report on following terms
a. Malware
Malware, a portmanteau
CSE201, Spring 2015
Homework Set# 15
Solution
1. An image file where each pixel is represented by a byte is given below. Give
a run-length PCX compression of this file.
00110001 00110001 00110001 0011
CSE 201
Fundamentals of
Information Technology
Spring 2015
_
Sample Questions
Fundamentals of Information Technology
CSE 201
Spring 2015
_
1. In the table below, for each technology, check the appropr
CSE 201, Spring 2015
Homework Set # 10
Solution
1. Using the method discussed in class, convert (long hand)
a. Decimal (that is, base 10) 8870 to binary
8870 = 4435 * 2 + 0
4435 = 2217 * 2 + 1
2217 =
CSE 201, Spring 2015
Homework Set # 06
Solution
1. In about 100 words, summarize the main points of Chapter 2 of the Text.
2. Type in the following, one line at a time, and pressing the Enter/Return
k
CSE 201, Spring 2015
Homework Set # 02
Solution
1. Study Google Quick Help (posted), and give a search expression for
finding all pdf files on how to learn python. Show your first 4 results.
Search te
Lecture 28
1
DATA COMPRESSION
2
WHAT IS LOSSLESS
COMPRESSION?
Lossless compression is a class of data compression
algorithms that allows the original data to be
perfectly reconstructed from the com
Lecture 19
1
Notables
Forthcoming topics:
Human vision
Data compression
2
Fundamentals of
Color Representations, Images, Videos,
3
Whats wrong with this picture?
4
5
Understanding Waves
Period
Thursday, January 15, 2015
Notables
Homework #1, 2, and 3 will be posted today
Lecture 02
HW01, Due Tuesday January 20, 2015
Read: Top 10 Simple Things Every Computer User Should Know
How to Do
http:/
1. Give the value of the following Python expressions:
a. 42 / 10
b. 42 / 10
c. 42 % 10
d. 2 + 2 = 5
e. 2 = "2"
f. not 2
2. What should x, y and z be in range(x,y,z) function in order to generate the
Tuesday, March 17, 2015
Notables
Two homework sets will be posted today.
Lecture 16
Due next week
Read this post:
http:/nautil.us/blog/the-math-trick-behind-mp3s-jpegsand-homer-simpsons-face
Tuesday M
Tuesday, January 19, 2016
Notables
Lecture 03
Homework #1 is posted
Read: Top 10 Simple Things Every Computer User Should Know
Due Thursday January 21, 2015
How to Do
http:/lifehacker.com/5941496/top
Tuesday, January 12, 2016
CSE 201 Catalog Description
CSE 201
Fundamentals of Information
Technology
Prerequisite:
Recommended Background:
Dr. Abdol-Hossein Esfahanian
Computer Science and Engineering
def ms(K,L):
import random
N = []
N1 = []
for k in K:
N.append(k)
for l in L:
N.append(l)
while N:
minimum = N[0]
for n in N:
if n <= minimum:
minimum = n
N1.append(minimum)
N.remove(minimum)
return N
"
CSE 201 HW5
Due 2-18-2016
NAME(s): Anjie He
"
#Put your code for problem 1 below
import random
def Powerball():
count = 0
num_list = []
while count <= 5:
n = random.randint(1, 69)
if n not in num_li
CSE 201, Spring 2016
Homework Set # 02
Due Thursday January 28, 2016
Show all your work, and type your solution
Make sure to print team members names
1. In about 100 words, summarize the main points o
1. PageRank is the technology that launched Google. There are several tricks related to
this technology. First is hyperlink trick. Hyperlink trick is used by the computer to count
up the numbers of li
Thursday, January 21, 2016
Notables
Lecture 04
Homework #2 will be posted
Forthcoming topics:
Due Thursday January 28, 2015
System review
Thursday January 21, 2016
78
79
Major Components of a Computer
Thursday, February 4, 2016
Notables
Lecture 08
Homework #4 will be posted
Thursday February 4, 2016
Due Thursday February 11, 2015
Forthcoming topics:
Python
164
165
string lib
More Python Keywords
st