run replications R [in s] python [in s]
1 1 10000 0.514 0.1686378
2 2 10000 0.516 0.1630241
3 3 10000 0.513 0.1622581
4 4 10000 0.515 0.1622709
5 5 10000 0.516 0.1628715
2025-02-06
graded with feedback
you can re-submit (once) to react to the feedback (submit the link in Canvas again, so that I know you are ready for another round of grading)
extra credit: timing of palindrome evaluation
Five runs of 10,000 evaluations of checking vector for palindromes:
run replications R [in s] python [in s]
1 1 10000 0.514 0.1686378
2 2 10000 0.516 0.1630241
3 3 10000 0.513 0.1622581
4 4 10000 0.515 0.1622709
5 5 10000 0.516 0.1628715
What information do we gain from the multiple runs?
What do you expect to happen for lower number of replicates (besides faster times)?
Readings: Data input - quiz before class on Tuesday
Homework #3 due on Tuesday
Review: General Programming
Know how to:
Goal for today: push at least one commit to your Github repo
Not all statements that execute are correct (Part 1: fix mistakes)
Part 2: write a decoder
Part 3: Decode the secret message!
default in R is to fill columns first
in python rows are filled first - need to set order
to False
Write an encoder for your decoder, then use it to create another secret message.
Add the R/python code for your encoder in a code chunk in index.qmd
.
Add your encoded secret message as a file to your repo.
Start on new unit - reading data!
Before class:
Read Data Input and Exploratory Data Analysis