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 95
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
Is the anti-spam software user-based?
What is Email spam ?
What is an antispam?
What is the Captcha value?
What is MagicSpam?
What is an execution plan? When would you use it?
What is BCP? When does it used?
What are the advantages of using Stored Procedures?
What is a Scheduled Jobs or What is a Scheduled Tasks?
What is NOT NULL Constraint?
What is CHECK Constraint?
What is FOREIGN KEY?
What is UNIQUE KEY constraint?
What is PRIMARY KEY?
What is the difference between a Local and a Global temporary table?
Name 3 ways to get an accurate count of the number of records in a table?
What is Log Shipping?
What is SQL Server Agent?
Which command using Query Analyzer will give you the version of SQL server and operating system?
What are the authentication modes in SQL Server? How can it be changed?



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