TEST 1 MATERIAL
Event-driven Pages
event-handler elements
button (INPUT tag, attributes: TYPE, VALUE, ONCLICK)
text box (INPUT tag, attributes: TYPE, ID, VALUE, SIZE)
text area (TEXTAREA tag, attributes: ID, ROWS, COLS)
image (IMG tag, attributes: ID, SRC, ALT)
accessing a text box/text area/image
document.getElementById('BOX_OR_TEXTAREA_ID').value
document.getElementById('IMAGE_ID').src
functions to simplify buttons
Applications in Biology & Bioinformatics
impact: 1. computer technology as tools
2. modeling of complex systems,
3. storing and analyzing biological data
bioinformatics, genetic databases
Problem Solving & Algorithms
Polya's problem solving steps
algorithm analysis, rate of growth, Big Oh notation
sequential search vs. binary search
machine language vs. high-level language
program translation: interpreter vs. compiler
Abstract Thinking & Functions
abstraction, user-defined functions
parameters, comments, return statement
local variables, var declaration
function libraries, SRC attribute of SCRIPT tag
random.js: RandomInt, RandomNum, RandomChar, RandomOneOf
Computer Science as a Discipline
study of computation, artificial vs. natural science
CS themes: hardware, software, theory
subfields of CS
Algorithms & Data Structures: public-key encryption
Architecture: parallel processing
Operating Systems & Networks: Ethernet
Software Engineering: software life cycle
Artificial Intelligence: Turing Test
Bioinformatics: genetic databases
ethics of computing
Applications in Artificial Intelligence
techniques and models that simulate/investigate intelligent behavior
neural networks
simplified model of the brain
artificial neuron: inputs, associated strengths, single output
can be trained to recognize patterns (e.g., backpropogation)
applications: character recognition, credit card verification, ...
genetic algorithms
problem-solving approach patterned on evolution
chromosome: possible solution to the problem (repr. as a string)
reproduction: combine existing chromosomes to create new ones
natural selection: only the fittest chromosomes survive & reproduce
can introduce random mutations as well
applications: airport scheduling, stock market predictions, ...