






Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!







Introduction to Theory of Computation IN this lecture we will be studying about some terms like symbol alphabet string language and even some more that would follow. We will study what this means and what they are used for Okay, so let 's start with symbol, so what is a symbol anything like a B is C, 0, 1, 2-3 and so on that is a very simple and the most basic part of it and let us come to. The second one alphabet. An alphabet is denoted by Sigma. A string a collection of symbols is known as same string sequence of symbols strings actually it means a sequence. The concept of language became clear to us. So language are a set of strings over some alphabets. The next thing that we need to discuss is known as powers of Sigma.. Sigma power is denoted by a special symbol called Sigma power zero.. The power of Sigma is a set that is equal to the set of all strings length of length zero.. Epsilon is used to denote the set of all strings of length zero denoted by Sigma power zero. Sigma power 1 is equal to what would that be 0 and 1 or the length of those two length 1 or 0 and. 0.. THe next term that we need to discuss is known as cardinality cardinality. So I hope you already some of you may already know what is when your cardinality. Sigma power n is a set of all strings of length N 1 and the cardinality is 8... Sigma star T star can be replaced with Sigma
power T star.. Sigma power 0 is just epsilon Union. Sigma power 1. What is it it is 0-1. Sigma power 2 is 0 0, 0, 1, 1 0 and 1-1, and so on it goes on so let us put the values here. Theory of computation is one of the most fundamental courses of computer science which every computer scientists and engineers must know. This course is not going to help your right programs or build a computer research but it will help you understand how people have thought about computer science as a science in the past 50 years. Is it possible to design this kind of a system - this is absolutely yes we can and the best example I can give for this is combiners when we write a piece of code into our compilers. When I write a code in Java it should check the binary equivalent of this codes and from this binary equivalent it should tell whether this came from a valid piece of Java code or it is invalid. FSM is one of the simplest model of computation and it has a very very limited amount of memory and it can perform very low-level computations and calculations. CFL is a little more powerful than FSM and can perform some more higher level of computations as compared to finite state machines. In the next layer we have something known as Turing machine during machine is a machine that can perform high- level calculations. We will be starting with finite state machines FSM in the next following lectures so will we start with the very basics so do n't worry even if we don't understand these terms that we used here
with a focus on the first decimal number and the number system it belongs to. In the previous session, we learned about the Unity and Decimal number systems. In this session, we will be introduced to another essential number system, the Binary Number System. This system uses symbols of 0 and 1, making the number of symbols used 2, which is also the base of the system. When the least significant bit changes from 1 to 0, we have to observe the next bits towards the most significant bit. If the next bit is 0, it will get changed to 1, and if it is 1, it will get changed to 0. This is the basic logic and representation procedure of the Binary Number System. In the upcoming sessions, we will introduce a few more interesting number systems. I hope to see you in the next ones! The octal number system, also known as base 8 number system, uses the symbols 0, 1, 2, 3, 4, 5, 6, and 7. Three-bit binary numbers represent octal symbols, making it useful when representing binary bit streams with fewer symbols. To use octal representation, group three binary digits together, starting from the least significant bit to the most significant bit. Then, replace the group with its equivalent octal value.The place values of the octal system are written following a "subscript 8". For example, the value 047232 can also be written as 47232 (base 8). After reaching seven in the units place, the next numbers are 10, 11, 12, and so on until 17. When we reach 17, we use the next available symbol, which is 20. After 77, we repeat the process,
using the symbols 100, 101, 102, and so on. The place values of the octal system are increments of eight (8^0, 8^1, 8^2, etc.).When converting a 15-bit binary bit stream to octal, we only need five octal digits. For example, the binary bit stream 100100111000010 (base 2) is equivalent to the value 47232 (base 8).In the octal system, we use a base of 8 and add a "subscript 8" for clarity. After learning about octal representation, we can easily convert the given binary bit stream to octal. If you have any questions, feel free to ask in the comments section.Finally, in the next session, we will explore another interesting number system. Thanks for watching and we hope to see you soon. Hexadecimal Number System In this session, we will learn about the hexadecimal number system. We will observe how numbers are formed in this system and understand the general representation of hexadecimal numbers. The symbols used in this system are 0, 1, 2, 3, 4, 5, 6, 7, 8, and 9. In addition, the letters A-F are used to represent values 10-15. For example, 100 in hexadecimal is equal to 8 in decimal. 1000100 in hexadecimal is equal to 00 in decimal. And 10245 in hexadecimal is equal to 41317 in decimal. The hexadecimal number system is often used to represent binary bit streams using a smaller number of digits than octal. It is also commonly used to represent memory addresses in devices such as computers. Hexadecimal numbers can be represented with a prefix of 0x, such as 0xCE9A, which is equal to 52890 in decimal. For the most significant digit, we use the symbols from 0-9 and A-F. After F, the next number is formed by using A in the 16's place. The place values go from
We will learn about the conversion of octal number "1011" to decimal, which means the decimal value is 521. We will also learn about the place value of a binary number in the decimal system, and how to convert decimal numbers to hexadecimal numbers. Moreover, we will learn about the meaning of place values in decimal conversion. The procedure for converting a binary number to decimal involves determining the place values by multiplying each bit position with 2. This process continues until the nth bit, and the number is converted to its equivalent decimal value by adding the products of the place values and their respective digit values. Consider the binary number "1101001". Here, we have six bits, so the LSB will have a place value of 1. The next bit will have a place value of 2, and so on. Following this method, we get a decimal value of 53 for the binary number "1101001". In this session, we learned about converting binary to decimal through three different methods. In the next session, we'll focus on converting decimal to any other number system.
We'll explore the conversion procedures for octal and hexadecimal to decimal, including how symbols other than 0 to 9 are used to determine the equivalent decimal value. Additionally, we'll observe how the procedures for converting octal and hexadecimal numbers differ. The final phase of the session will cover converting decimal to decimal numbers using any of the presented methods. We'll learn how these methods are used to convert a decimal number to any number system. Join us next time as we dive deeper into converting numbers from different systems with a focus on using these conversion methods for the number system: ABCDEF. Thank you for watching! In this session, we will observe different techniques for converting numbers from the decimal number system to other number systems. One conventional approach is to perform integer factorization using the base of the number system and record all obtained remainders in reverse. For example, the equivalent binary of the decimal number 126 is triple 1, triple 1, double 1, 0.
We hope to show everyone how to find solutions to our favorite number systems and solve our favorite problems. So please share your favorite numbers and pictures with us.