Uploaded by M AC

algorithm-2

advertisement
Algorithm and Complexity
1. What is an algorithm?
=An algorithm is a set of steps to accomplish a specific task for the computer, with a
purpose to represent an attempt to achieve a goal.
2. How algorithm plays a role to computer modernization?
= Algorithm has a big contribution to computer modernization, now a days we used
algorithm in our daily basis which is very helpful.
For an Example:
=you were searching for the data that has been input to computer about the year ago,
you don’t need to find it manually, instead you can just search it as long as that data its in the computer
already, you can find it easily.
3. What is an algorithm design?
=Is a step were you have to write your algorithm in some format, keeping your data of
how did you create your algorithm.
4. Explain the computational problem development steps.
5. Describe algorithm
= Algorithm nowadays is very efficient it is used around the world, it makes things a lot
easier than before, like searching for a data that has been forgotten, but as long as the data is in the
computer already you can easily find it. Cause that’s algorithm does, it commands an instruction the
computer follows.
6. Describe Pseudocode
=It specifies the steps that involved in your algorithm.
7. Differentiate algorithm and pseudocode
=pseudocode is the process or the documentation of making an algorithm
=while an algorithm is the output or the finished product.
Architecture and Organization
1. What is computer organization?
=Computer organization is all about how the computer
works ,how the microprocessor work internally, and also about the computer structures.
And one of its examples is:
=Control Unit/ central processing unit.
= it is the brain of the computer.
2. What is computer architecture?
= deals with the design of computers, data storage devices, and
networking components that store and run programs, transmit data, and drive interactions
between computers, across networks, and with users.
Example of computer architecture:
= software application
3. What are the main parts of computer system? Explain each part.
A. input
=it is were you input a data into your computer.
B. memory
=it is the storage of the data that you put into your computer
C. arithmetic and logic
=it is the one that execute the instruction
D .output
= it is the one that displays what you input in to your computer
E. control units
= It tells the computer's memory, arithmetic logic unit and input and output devices how
to respond to the instructions that have been sent to the processor.
4. Illustrate/draw a diagram of functional units of computer.
Memory Unit
Arithmetic
And
Logic Unit
Input
Unit
UnitControl
Unit
output
Unit
Processor
5. There are 2 types of storage classes/differentiate primary and secondary storage.
=primary storage plays a big role in computer, because computer can’t work
without memory. Primary storage is directly connected to CPU, so accessing data from the computer is easy
since its connected in the CPU, but all the data in primary storage are not permanent, cause once the power
is out all your data that are stored in the primary storage will be erase or wipe out.
=secondary storage or external memory, it is not directly connected to the CPU
so accessing data won’t be as fast as the primary storage it might take a little time. But its stored data
permanently even after you shutdown your computer, all the files in the computer are stored in secondary
memory.
6. Illustrate and explain the concept of basic operational concept.
=it plays a big role for the computer to work properly.
= An appropriate program consisting of a list of instructions is stored in the memory so that the
tasks can be started.
7. Describe the functions of the following.
A. Instruction register
=it is a part of the CPU unit that hold the instruction that are currently executed in
your computer.
B. Program counter
=it addresses the instruction that is to be executed next.
C. Memory address register
=it uses as a sender of the data that is going to be executed.
D. Memory data register
=it is used as the storage of the data that has been transferred to and from the
immediate access storage.
E. Interrupts
= use as sender to the processor as an interrupt request.
Download