CoolInterview.com - World's Largest Collection of Interview Questions & Answers, FAQs, queries, sample papers, exam papers, dumps, what, why, how, where, when questions OneStopTesting.com - Testing EBooks, Tutorials, Articles, Jobs, Training Institutes etc.
OneStopGate.com - Gate EBooks, Tutorials, Articles, FAQs, Jobs, Training Institutes etc.
OneStopMBA.com - MBA EBooks, Tutorials, Articles, FAQs, Jobs, Training Institutes etc.
OneStopIAS.com - IAS EBooks, Tutorials, Articles, FAQs, Jobs, Training Institutes etc.
OneStopSAP.com - SAP EBooks, Tutorials, Articles, FAQs, Jobs, Training Institutes etc.
OneStopGRE.com - of GRE EBooks, Tutorials, Articles, FAQs, Jobs, Training Institutes etc.

Sponsored Links

Interview Questions
Our Services

INTERVIEW QUESTIONS ALGORITHM DETAILS
Question :

Please Give the example of bruteforce algorithm?

Posted by: nageswara on 4/10/2015

Contact nageswara Contact nageswara

Category Algorithm Interview Questions
Rating (3.0) By 10 users
Added on 4/10/2015
Views 94
Rate it!


Answers:

Source: CoolInterview.com

Selection sort can be one of the examples of brute force algorithm...
Algorithm Selectionsort(a[0...n-1])
for i<-0 to n-2 do
min <- i
for j <- i+1 to n-1 do
if A[j]< A[min] min <-j
swap A[i] and A[min]


Source: CoolInterview.com



Posted by: Radhika B.

Contact Radhika B. Contact Radhika B.

Source: CoolInterview.com

Progam to check if a given number is a prime number is a brute force algorithm.

while(p <= n)
{
c=0;
for(i=2; i<=p/2; i++)
{ if(p % i==0) c++; }
if(c == 1) printf("%d ", p);
p++;
}




Source: CoolInterview.com



Posted by: K Neeraj Lal

Contact K Neeraj Lal Contact K Neeraj Lal

If you have the better answer, then send it to us. We will display your answer after the approval.
Rules to Post Answers in CoolInterview.com:-
  • There should not be any Spelling Mistakes.
  • There should not be any Gramatical Errors.
  • Answers must not contain any bad words.
  • Answers should not be the repeat of same answer, already approved.
  • Answer should be complete in itself.
Name :*
Email Id :*
Answer :*
Verification Code Code Image - Please contact webmaster if you have problems seeing this image code Not readable? Load New Code
Process Verification Enter the above shown code: *
Inform me about updated answers to this question

Related Questions
View Answer
State the problems which differentiate between recursive procedure and non-recursive procedure?
View Answer
Explain the depth of recursion?
View Answer
Explain about procedural body and computation boxes?
View Answer
How can an inductive definition be realized?
View Answer
State recursion and its different types?
View Answer
Define and describe an iterative process with general steps of flow chart?
View Answer
Given a system of N equations whose coefficient matrix A is triangular and is stored in a vector R and the right hand side vector B, this algorithm obtains the solution vector X. Sum is a temporary variable. I am M are integer variables. How to follow the algorithm?
View Answer
In Algorithmic context how would you define ?book keeping operations??
View Answer
Explain the function SUB in algorithmic notation?
View Answer
What are the arguments present in pattern matching algorithms?
View Answer
Define string in an algorithmic notation and an example to support it?
View Answer
What are the two ways through which the Markov algorithm terminates?
View Answer
What is the general strategy for Markov Algorithm?
View Answer
The most basic tool used to express generating functions in closed form is the closed form expression for the geometric series, which is an expression of the form a+ar+ar2+-------+arn. It can either be terminated or extended indefinitely. What are the restrictions for this geometric series?
View Answer
Name any three skills which are very important in order to work with generating functions.
View Answer
Explain about the algorithm ORD_WORDS?
View Answer
Explain the function of KWIC_Create?
View Answer
What is the general algorithm model for any recursive procedure?
View Answer
Give the difference of format between an algorithm and a sub algorithm?
View Answer
Define and state the importance of sub algorithm in computation and its relation ship with main algorithm?
View Answer

Please Note: We keep on updating better answers to this site. In case you are looking for Jobs, Pls Click Here Vyoms.com - Best Freshers & Experienced Jobs Website.

View ALL Algorithm Interview Questions & Answers



User Options
India News Network

Latest 20 Questions
What is TDS on property above 50 Lacs?
Are the capital gains from the transfer of an inherited property or a property received as gift chargeable to tax?
If I am having two residential properties in two different cities, what are the taxation rules for both of them? Both are income generating?
What is income tax benefits that one gets when he is paying Pre-Emi for a under construction property?
What is the difference between property tax and income tax?
What all does the term property include for the purpose of income tax?
My property was self-occupied for a part of the year and was let-out for the remaining part, how will my income from this property be computed?
What is property Tax? Is it vary from city to city?
Is there a property tax for the mortgage property?
When is short term capital gain tax applicable?
What is service tax on Ready to move in resale property?
How would a joint holding of property affect tax liability?
Who will pay the property tax when title of property is in dispute?
A part of my property is self-occupied and rest is let-out. How will my income from this property be computed?
Is there is any property tax on vacant land?
What is the Annual Value of self-occupied property? What deductions are allowed in case of self-occupied property?
How can I find out the Municipal Valuation of my property?
What forms of long term capital gains exempted from taxation?
Is it necessary to take a permission from the Income Tax department if I am interested in purchasing an immovable property?
What is the service tax on PLC and why?



Fresher Jobs | Experienced Jobs | Government Jobs | Walkin Jobs | Company Profiles | Interview Questions | Placement Papers | Companies In India | Consultants In India | Colleges In India | Exams In India | Latest Results | Notifications In India | Call Centers In India | Training Institutes In India | Job Communities In India | Courses In India | Jobs by Keyskills | Jobs by Functional Areas

Testing Articles | Testing Books | Testing Certifications | Testing FAQs | Testing Downloads | Testing Interview Questions | Testing Jobs | Testing Training Institutes

Gate Articles | Gate Books | Gate Colleges | Gate Downloads | Gate Faqs | Gate Jobs | Gate News | Gate Sample Papers | Gate Training Institutes

MBA Articles | MBA Books | MBA Case Studies | MBA Business Schools | MBA Current Affairs | MBA Downloads | MBA Events | MBA Notifications | MBA FAQs | MBA Jobs
MBA Job Consultants | MBA News | MBA Results | MBA Courses | MBA Sample Papers | MBA Interview Questions | MBA Training Institutes

GRE Articles | GRE Books | GRE Colleges | GRE Downloads | GRE Events | GRE FAQs | GRE News | GRE Training Institutes | GRE Sample Papers

IAS Articles | IAS Books | IAS Current Affairs | IAS Downloads | IAS Events | IAS FAQs | IAS News | IAS Notifications | IAS UPSC Jobs | IAS Previous Question Papers
IAS Results | IAS Sample Papers | IAS Interview Questions | IAS Training Institutes | IAS Toppers Interview

SAP Articles | SAP Books | SAP Certifications | SAP Companies | SAP Study Materials | SAP Events | SAP FAQs | SAP Jobs | SAP Job Consultants
SAP Links | SAP News | SAP Sample Papers | SAP Interview Questions | SAP Training Institutes |




Copyright ©2003-2016 CoolInterview.com, All Rights Reserved.
Privacy Policy | Terms and Conditions



Cache = 0 Seconds