Already have an account? Get multiple benefits of using own account!
Login in your account..!
Remember me
Don't have an account? Create your account in less than a minutes,
Forgot password? how can I recover my password now!
Enter right registered email to receive password!
What do we mean by algorithm? What are the characteristics of a good and relevant algorithm?
An algorithm is "a step-by-step procedure for finishing some task'' An algorithm can be specified in many ways. For example, it can be written down in English (or French, or any other language). However, we are interested in algorithms which have been specifically specified using an appropriate mathematical formalism--such as a programming language.
Each and Every algorithm should have the following five characteristics:
1.Input characteristics: The algorithm should be taking zero or more input.
2. Output characteristics: The algorithm should be producing one or more outputs.
3. Definiteness characteristics: All the steps of algorithm should be defined unambiguously.
4. Effectiveness characteristics: A person should be able to calculate the values involved in the process of the algorithm using paper and pencil.
5. Termination characteristics: An algorithm must terminate after a finite number of steps which means it should not be infinite.
The best algorithm to solve a given problem is one that requires less space in memory and takes less time to complete its execution. But in practice it is not always possible to
1. The following is a recursive algorithm to calculate the k -th power of 2. Input k a natural number Output kth power of 2 Algorithem: If k =0then return 1 Else return 2* po
Ask question find frequency count of function- {for(i=1;i {for(j=1;j {for(k=1;k } } }
Q. Write an algorithm that counts number of nodes in a linked list. A n s . Algo rithm to Count No. of Nodes in Linked List C
A telephone directory having n = 10 records and Name field as key. Let us assume that the names are stored in array 'm' i.e. m(0) to m(9) and the search has to be made for name "X"
Define Minimum Spanning Tree A minimum spanning tree of a weighted linked graph is its spanning tree of the smallest weight, where the weight of a tree is explained as the sum
(a) Describe the steps involved in the process of decision making under uncertainty. (b) Explain the following principles of decision making: (i) Laplace, (ii) Hurwicz. (c
perform the following length operation LENGTH("welcome to ICA")=
how to define the size of array
give any example of page replacement using fifo and use your own reference string
Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!
whatsapp: +91-977-207-8620
Phone: +91-977-207-8620
Email: [email protected]
All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd