Menu English Ukrainian russian Home

Free technical library for hobbyists and professionals Free technical library


Lecture notes, cheat sheets
Free library / Directory / Lecture notes, cheat sheets

Computer science and information technology. Introduction to Computer Science (lecture notes)

Lecture notes, cheat sheets

Directory / Lecture notes, cheat sheets

Comments on the article Comments on the article

Table of contents (expand)

LECTURE No. 1. Introduction to computer science

1. Computer science. Information. Representation and processing of information

Computer science deals with the formalized representation of objects and the structures of their relationships in various fields of science, technology, and production. To model objects and phenomena, various formal means are used, for example logical formulas, data structures, programming languages, etc.

In computer science, such a fundamental concept as information has different meanings:

1) formal presentation of external forms of information;

2) abstract meaning of information, its internal content, semantics;

3) relation of information to the real world.

But, as a rule, information is understood as its abstract meaning - semantics. By interpreting the presentation of information, we will obtain its meaning, semantics. Therefore, if we want to exchange information, we need consistent representations so that the correctness of interpretation is not compromised. To do this, the interpretation of the presentation of information is identified with certain mathematical structures. In this case, information processing can be performed using strict mathematical methods.

One of the mathematical descriptions of information is its representation in the form of a function y =f(x, t), where t is time, x is a point in a certain field at which the value of y is measured. Depending on the parameters of the chi function (information can be classified.

If the parameters are scalar quantities that take on a continuous series of values, then the information thus obtained is called continuous (or analog). If the parameters are given a certain step of change, then the information is called discrete. Discrete information is considered universal, since for each specific parameter it is possible to obtain the value of a function with a given degree of accuracy.

Discrete information is usually identified with digital information, which is a special case of symbolic information of alphabetical representation. An alphabet is a finite set of symbols of any nature. Very often in computer science a situation arises when the characters of one alphabet must be represented by the characters of another, i.e., a coding operation must be performed. If the number of symbols of the encoding alphabet is less than the number of symbols of the encoding alphabet, then the encoding operation itself is not complex, otherwise it is necessary to use a fixed set of symbols of the encoding alphabet for unambiguous correct encoding.

As practice has shown, the simplest alphabet that allows you to encode other alphabets is binary, consisting of two characters, which are usually designated by 0 and 1. Using n characters of the binary alphabet, you can encode 2n characters, and this is enough to encode any alphabet.

The quantity that can be represented by a symbol of the binary alphabet is called the minimum unit of information or bit. A sequence of 8 bits - a byte. An alphabet containing 256 different 8-bit sequences is called a byte alphabet.

Today, the standard code in computer science is one in which each character is encoded by 1 byte. There are other alphabets.

2. Number systems

A number system is a set of rules for naming and writing numbers. There are positional and non-positional number systems.

A number system is called positional if the value of a digit of a number depends on the location of the digit in the number. Otherwise it is called non-positional. The value of a number is determined by the position of these digits in the number.

3. Representation of numbers in a computer

32-bit processors can handle up to 232-1 RAM, and addresses can be written in the range 00000000 - FFFFFFFF. However, in real mode the processor operates with memory up to 220-1, and addresses fall in the range 00000 - FFFFF. Memory bytes can be combined into fields of either fixed or variable length. A word is a fixed-length field consisting of 2 bytes, a double word is a field of 4 bytes. Field addresses can be even or odd, and operations are performed faster for even addresses.

Fixed-point numbers are represented in a computer as binary integers, and their size can be 1, 2 or 4 bytes.

Binary integers are represented in two's complement, and fixed-point numbers are represented in two's complement. Moreover, if a number occupies 2 bytes, then the structure of the number is written according to the following rule: the most significant digit is allocated to the sign of the number, and the rest - to the binary digits of the number. The complementary code of a positive number is equal to the number itself, and the complementary code of a negative number can be obtained using the following formula: x = 10i - \x\, where n is the digit capacity of the number.

In the binary number system, the additional code is obtained by inverting the digits, that is, replacing ones with zeros and vice versa, and adding one to the least significant digit.

The number of bits of the mantissa determines the precision of the number representation, the number of bits of machine order determines the range of representation of floating point numbers.

4. Formalized concept of an algorithm

An algorithm can only exist if some mathematical object exists at the same time. The formalized concept of an algorithm is associated with the concept of recursive functions, normal Markov algorithms, and Turing machines.

In mathematics, a function is called single-valued if for any set of arguments there is a law by which a unique value of the function is determined. An algorithm can act as such a law; in this case the function is called computable.

Recursive functions are a subclass of computable functions, and the algorithms that define the calculations are called the companion algorithms of recursive functions. First, the basic recursive functions are fixed, for which the accompanying algorithm is trivial and unambiguous; then three rules are introduced - substitution, recursion and minimization operators, with the help of which more complex recursive functions are obtained based on basic functions.

The basic functions and their accompanying algorithms can be:

1) a function of n independent variables, identically equal to zero. Then, if the sign of the function is φn, then, regardless of the number of arguments, the value of the function should be set equal to zero;

2) an identical function of n independent variables of the form ψni. Then, if the sign of the function is ψni, then the value of the function should be taken the value of the i-th argument, counting from left to right;

3) Λ is a function of one independent argument. Then, if the sign of the function is λ, then the value of the function should be taken to be the value following the value of the argument. Various scientists have proposed their approaches to formalized

presentation of the algorithm. For example, the American scientist Church suggested that the class of computable functions is exhausted by recursive functions and, as a consequence, whatever the algorithm is that processes one set of non-negative integers into another, there is an algorithm that accompanies the recursive function and is equivalent to this one. Consequently, if a recursive function cannot be constructed to solve a certain problem, then there is no algorithm for solving it. Another scientist, Turing, developed a virtual computer that processed an input sequence of symbols into an output. In this regard, he put forward the thesis that any computable function is Turing computable.

Author: Tsvetkova A.V.

>> Forward: Pascal language (Introduction to Pascal. Standard procedures and functions. Pascal operators)

We recommend interesting articles Section Lecture notes, cheat sheets:

Control and revision. Lecture notes

Criminal process. Lecture notes

Enterprise economy. Lecture notes

See other articles Section Lecture notes, cheat sheets.

Read and write useful comments on this article.

<< Back

Latest news of science and technology, new electronics:

The existence of an entropy rule for quantum entanglement has been proven 09.05.2024

Quantum mechanics continues to amaze us with its mysterious phenomena and unexpected discoveries. Recently, Bartosz Regula from the RIKEN Center for Quantum Computing and Ludovico Lamy from the University of Amsterdam presented a new discovery that concerns quantum entanglement and its relation to entropy. Quantum entanglement plays an important role in modern quantum information science and technology. However, the complexity of its structure makes understanding and managing it challenging. Regulus and Lamy's discovery shows that quantum entanglement follows an entropy rule similar to that for classical systems. This discovery opens new perspectives in the field of quantum information science and technology, deepening our understanding of quantum entanglement and its connection to thermodynamics. The results of the study indicate the possibility of reversibility of entanglement transformations, which could greatly simplify their use in various quantum technologies. Opening a new rule ... >>

Mini air conditioner Sony Reon Pocket 5 09.05.2024

Summer is a time for relaxation and travel, but often the heat can turn this time into an unbearable torment. Meet a new product from Sony - the Reon Pocket 5 mini-air conditioner, which promises to make summer more comfortable for its users. Sony has introduced a unique device - the Reon Pocket 5 mini-conditioner, which provides body cooling on hot days. With it, users can enjoy coolness anytime, anywhere by simply wearing it around their neck. This mini air conditioner is equipped with automatic adjustment of operating modes, as well as temperature and humidity sensors. Thanks to innovative technologies, Reon Pocket 5 adjusts its operation depending on the user's activity and environmental conditions. Users can easily adjust the temperature using a dedicated mobile app connected via Bluetooth. Additionally, specially designed T-shirts and shorts are available for convenience, to which a mini air conditioner can be attached. The device can oh ... >>

Energy from space for Starship 08.05.2024

Producing solar energy in space is becoming more feasible with the advent of new technologies and the development of space programs. The head of the startup Virtus Solis shared his vision of using SpaceX's Starship to create orbital power plants capable of powering the Earth. Startup Virtus Solis has unveiled an ambitious project to create orbital power plants using SpaceX's Starship. This idea could significantly change the field of solar energy production, making it more accessible and cheaper. The core of the startup's plan is to reduce the cost of launching satellites into space using Starship. This technological breakthrough is expected to make solar energy production in space more competitive with traditional energy sources. Virtual Solis plans to build large photovoltaic panels in orbit, using Starship to deliver the necessary equipment. However, one of the key challenges ... >>

Random news from the Archive

Creation of an artificial uterus 27.08.2016

The first 13 days after human conception are still largely a mystery to scientists, as the process is almost impossible to observe. But now scientists have created the world's first artificial womb, or at least a prototype.

We cannot look into the uterus, we cannot see how fertilized eggs grow, so we understand the whole process only in general terms. However, researchers at the Rockefeller Center were the first to be able to observe and grow human embryos for 13 days in a fully laboratory environment (more observation of egg growth is prohibited by law for ethical reasons). Scientists raised the embryos with insulin and other nutrients outside of the usual conditions. The experiment demonstrated that the embryo itself contains a set of genetic instructions responsible for development, which is not associated with the mother (at least at the initial stage)

This research provides an opportunity to develop new models of human growth, and may also help in cases of miscarriage and infertility. Of course, this does not mean that in the future all children will be raised in a laboratory, but it is quite possible that the human uterus will be just one of the options.

Other interesting news:

▪ Sony WF-1000XM3 Active Noise Canceling Wireless Headphones

▪ Nanosheets instead of platinum

▪ The structure of the brain sets some personality traits of a person

▪ Organ transplantation without tissue rejection

▪ Forests do not save from excess carbon dioxide

News feed of science and technology, new electronics

 

Interesting materials of the Free Technical Library:

▪ section of the site Microphones, radio microphones. Article selection

▪ article To live is to think. Popular expression

▪ article What is prohibited for Disney Park staff to decorate their appearance? Detailed answer

▪ article Repair and maintenance of tractors and agricultural machines. Standard instruction on labor protection

▪ article Liquid level detectors. Encyclopedia of radio electronics and electrical engineering

▪ article Antenna amplifier UHF. Encyclopedia of radio electronics and electrical engineering

Leave your comment on this article:

Name:


Email (optional):


A comment:





All languages ​​of this page

Home page | Library | Articles | Website map | Site Reviews

www.diagram.com.ua

www.diagram.com.ua
2000-2024