Posts Tagged ‘algorithm’

h1

7c. Crack a Security Code for Middle School………… Yes! Really!

August 27, 2017


NB: This post has been updated twice. Disraeli said that if you want to become acquainted with a subject, write about it!!!! Mathspig’s head nearly exploded writing about this subject. But I’ve got it down to its simplest form now. One that Mathspig  finally understands.

The Complaint: Maths is really SCARY!…………….

………………………………………………………………………….

The Cause:

Some students think maths is always right or wrong and they are scared of making mistakes.

………………………………………………………………………….

The Solution:

Tackle problems that can’t be solved even by a computer. Students can only guess the answer and then test it. Anyone can make a guess. Work in groups. Every member of the group can contribute as students explore this maths.

………………………………………………………………………….

The Challenge:……………………………………………………….

Can you crack a security encryption code?….………………………………………………..

……………………..…………………….……………………………………………………………

Topics:

Prime Numbers, Really BIG numbers……………………..

…………………………………………………………………………

Prime Numbers Hide Your Secrets: SLATE

Remember the best online calculator is the WEB 2.0 Calc. NOTE: This is a secure website and you can check on its KEYCHAIN too.

You will find a fantastic list of Prime Numbers here.

Crack a Security Code WORKSHEET & ANS

Mathspig thanks Prof Kate Smith-Miles, Prof of Applied Maths, Monash University for the information about Keychains. Kate has used KEYCHAIN exercises with primary school students. They really enjoyed going home and showing their parents how to find a Keychain on the computer.

Advertisements
h1

YouTube Clip Money Making Maths

June 26, 2017

………………..How much money does a popular

………………………YOUTUBE clip make?

You will learn everything you need to know at 1 Million YouTube Views.  Now let’s do the maths!

Here are the TOP 3 YouTube Clips Ever. Their popularity is measured by Number of Views. 

1. PSY – GANGNAM STYLE

2,879,287,942 views

View here.

2. Taylor Swift – Blank Space

2,088,564,435 views

View here.

3. Wiz Khalifa – See You Again. Charlie Puth (Furious 7)

2,850,776,581 views

View here.

YouTube uses an algorithm (ie. a formula) for calculating the amount of income earnt by a clip from advertising. There are multiple issues involved including how long viewers watch the ad, the demographics (age group) and the actual sales (Retailers actually do review ad costs vs increased sales. Always. They are not idiots.)

Here is  the basic method used to calculate ad revenue for a Youtube creator. Remember, a creator must have a minimum of 10,000 hits on their channel before any revenue is paid.

Of course, pop stars use Youtube as a promotion platform. They can earn money through multiple Youtube clips, sponsors, merchandise and live perfomances. Nevertheless, it is surprising how little money is earned by each clip.

eg. ONE DIRECTION

521,126,151 views

View here.

h1

1. Hokey Pokey Algorithm

November 25, 2015

1a Mathspig Hokey pokey
Here’s the Hokey Pokey:

You put your right foot in
You take your right foot out
You put your right foot in
And you shake it all about
You do the hokey pokey
And you turn yourself around
That’s what it’s all about!

1b. Hokey Pokey

Why are algorithms as easy as the Hokey Pokey?

Because the Hokey Pokey is an algorithm or a set of steps that have to be taken to complete a task (see below) and the task is having fun and/or being really embarrassed by your parents in public. Whatever!

2. Algorithm 1
3. Algorithm 2
For more information about algorithms go to the Khan Academy here.

READABILITY ALGORITHM
We are going to look at texts including a maths test to check their readability. Here are just a few songs with their age and Grade readability scores:
Hokey Pokey (above) = Grade 3 = 9 yo
Frosty the Snowman = Grade 5 = 11 yo
Hello by Adele = Grade 5 = 11 yo
Wildest Dream = Taylor Swift = Grade 3 = 9 yo
Russians* Sting = Grade 6 = 12 yo
* Most complicated lyrics I know. Any other suggestions?

h1

2. Readability Algorithm

November 25, 2015

The above algorithms are called pseudocode because you do not type a letter to a computer to tell it what to do. You have to write code to instruct it.
But computer code, as my little sailor friend would say, uses a shipload of maths.
I am going to give you instructions by writing a letter to you because that is your CODE that you understand.
You are going to calculate the The Flesch–Kincaid reading score for The Hunger Games and a Harry Potter TEXT.
Don’t run screaming out the door. This is not too complicated.
The Flesch–Kincaid reading score or, quaintly, the F–K formula (Oops! Only one – )tells you the grade reading level of a text.
F-K formula
4. Flesch Kincaid Formula
We will use a basic version and a calculator:
5 F-K Formula Basic
You will need:
Word Count =
Sentence Count =
Syllable count =
The Flesch Reading Ease score is interpreted as follows:

6. Flesch Kinaid Readability Table

More info here.

READABILITY is important for Newspapers, books and websites

Text to be read by the general public should aim for a grade level of around 60 – 69 or Grade 8.
YA authors use the F-K formula to see if the text of their novel has the appropriate reading age.
YOU CAN TEST YOUR OWN WRITING! What reading age is your writing?

………………………………………………

 Are your FINANCIAL and LEGAL CONTRACTS READABLE?

You may be able to SUE your BANK!!!!!!!!!

Contracts, by law in the US, should be written to a reading score of Grade 8. According to a recent article in the Telegraph, UK:
Insurance and banking customers who have been mis-sold financial products are more likely to be awarded compensation if they use a scientific test to prove policy documents were too difficult to read.
The “Flesch Kincaid” reading score is well established in the US, where most states require insurers’ policy documents to be written at no higher than a ninth-grade level (14–15 years of age) of reading difficulty.

…………………………………………………………………

Hunger Games And Harry Potter TEXT Readability
Readability Calculations: Method 1
YOU ARE THE COMPUTER.
You will do All calculations.
Readability Calculations: Method 2
You are the algorithm. You will cut and paste text into programs that auto-count words and syllables, collect this and other data from your computer and do the calculations using a calculator or online Web 2 calculator.
Readability Calculations: Method 3:
Cut and paste text directly into a Readability Calculator to get score.

Here are some interesting Readability Scores:

6a Readaility Score USA Constyitution

h1

5. Maths Test Readability Algorithm

November 25, 2015

Here is the text from a Grade 3 Math Test:

See Fear and Loathing in Grade 3 Math

Math homework

Math formative.

I can use multiplication strategies to help me multiply.

I can use the structure of a word problem to help me solve it.

Solve the word problem below. Be sure to show your work. Julie bought 7 packages of cupcakes. Each package has 4 cupcakes in it. How many cupcakes did Julie buy?

Flesch Kincaid Score = 81.4

Grade Reading Level = Grade 5

Reading Age = 10 – 11 years

This is a bit tough for Grade 3 students. Perhaps more Maths tests should be tested for AGE READING LEVELS!!!!!