Week 1 CT4032 Lecture
Week 1 CT4032 Lecture
Computational
Mathematics
CT4032
Week 1 – Computational Mathematics
Dr Nasreen Anjum
Lecturer in Computing University of Gloucestershire
PhD in Computer Science , Kings College London, UK
Learning Outcomes
• To understand how the
course will progress, and
what is required of you
with your assignment.
Pick four of the different mathematical topics that we have talked about throughout the course. You will discuss the theory behind each of the
topics you have chosen and demonstrate the mathematical processes. Finally, an in-depth discussion of a real-world example for the topic being
applied.
Security (1)
• Encryption Algorithms
Ceaser cipher algorithm is
the classical simple
encryption algorithm.
Easily breakable
Involve little mathematics
Advanced Encrpytion
Algorithm (AES)
1. Internet Moderan and complicated
algorithm
Security (2) Involves many mathematical
simple and complex
operatons such as logical
addition, multiplication,
division, Exclusive OR,
Exclusive not operations etc.
Matrix calculation, mixing
rows, shaping digits,
swapping columns, dropping
bits and adding bits etc.
2. Searching shortest and
Reliable Routes to Destinations
Searching Algorithms
Google Map uses A*
algorithm to find the
shortest paths to desired
destinations.
3. Science and Engineering
DNA and RNA sequencing Machine learning and AI techniques to Machine learning and AI techniques to
predict a determined health problem in predict the weather forecasting, stock
humans exchange forecasting, pandemic forecasting
• Digital logic design is used to develop hardware, such as circuit
boards and microchip processors
• Microprocessor chips comprises of millions of components such
as logical gates and circuitry to carryout arithmetic operations
such as logical addition, subtraction, multiplication, and division
etc.
• Logical And Gate, Logical OR gate, Logical Nor Gate, Adder,
4. Digital Subtractor,
Logic and
Design
Computers are powerful machines…
…but also stupid on their own
How computers know what to do with data?
How Solving Problems with Computational Math’s?
Obviously with simpler problems solutions can be solved normally, but how computer will solve these simple problems?
1+1=? 123 – 86 = ?
36 + 85 = ? 8x7=?
74 – 39 = ? 144 ÷ 4 = ?
• Accuracy
Algorithms • Efficiency
• Stability
Brute Force Algorithm
• C++ • Javascript
• Python • Scala
• Java • MATLAB
• Ruby • R
Decimal Binary Octal Hexadecimal
0 0000 000 00
1 0001 001 01
2 0010 002 02
3 0011 003 03
Computer 4 0100 004 04
Number
5 0101 005 05
6 0110 006 06
System 7
8
0111
1000
007
010
07
08
9 1001 011 09
10 1010 012 0A
11 1011 013 0B
12 1100 014 0C
13 1101 015 0D
14 1110 016 0E
15 1111 017 0F
Research
What are the
Activity- 10 applications of four
number systems you
Exercise • 36
• 64
Repeated prime factors are discussed here.
Since, 8 = 2 × 2 × 2; here 2 is said to be repeated prime factor of 8.
A number can have two or more different repeated prime
factors.
Prime
repeated prime factors of 36 = 2 × 2 × 3 × 3.
Python “Hello {
World” print(“Hello World!")
}
There are a bunch of different variables that are used in
python to store data.
• Integers = 123