# Introduction:-
Programming is nothing but a Computerized technical process that a computer can understand. Just like we all have a language and also our mother tongue, Computer has also its language.
First Programming was discovered by a British female Computer Scientist Ada Lovelace in 1840.
#Tower of Hanoi and Recursion in Programming:-
A very elegant solution from the use of recursion. Assume that the number of disks is n. To get the largest disk to the bottom of tower B, we move the remaining n-1 disks to tower C and then move the largest to tower B. To do we have towers A and B available. The fact that tower B has a disk on it can be as the disk is larger than the disks being moved from tower C and so any disk can be placed on top of it. Recursive nature of the solution is apparant from algorithm. Tower of Hanoi puzzle is fashioned after of Brahma ritual. According to leg at the time the world was created there was a diamond tower with 64 golden disks. The disks were decreasing size and were stacked on the tower in decreasing order from top. A recursive function is defined in terms of itself. Similarly, an algorithm is said to be recursive if the same algorithm is invoked in the body. An algorithm that's call itself is direct recursive.These recursive mechanism are extremely powerful,but even more importantly many times they can express an otherwise complex process very clearly. For these reason we introduce here. The expression followed by all permutations is the clue to recursion.It Implies that we can solve the problem for a set with n elements if we have an algorithm that works on n-1 elements.
Ada Lovelace has been called the world's first computer programmer. W
Programming has some special languages what is worldwide accepted. These are...
1) C
2) C++
3) Java
4) HTML
5) Python etc.
# How to learn programming :-
Firstly, we have to learn basic syntaxs of programming like header-footer, input output etc.
Seconly, we have to know Array,Linked list,Merge sort this kind of things main purpose and it's works.
A good programmer is appointed in reputed companies like - Amazon, Flipkart,IBM etc. This is age is Revolutionary age of Computer. So we have learn all the programming languages.
So, # What is an Array?
An Array is a collection of items stored In memeory location in a contiguous way. Array stores multipleitems of same data type.
# What is Linked list?
A linked list is a sequence of data-structures which are connected together via links.
# What is Recursion?
The process in which a function calls Itself directly or indirectly is called recursion.
Example- Tower of Hanoi, Traversals.
# What is Stack?
Stack is a linear data structure that follows a particular order in which the operations are performed which are -
1) LIFO(Last In First Out)
2) FILO(First In Last Out)
# Data Structures are 2 types-
1) Linear Data structures
2) Non -Linear Data structures
So we have to learn programming properly!
You must be logged in to post a comment.