Here is the C# program that can find the nth (100000 in this program) prime number: The program starts by initializing primeCount to 0, which
Tag: algorithm
Write a program to find the maximum element in an array using linear search.
In computer science, searching for a particular element in a data structure is a very common task. One of the simplest ways to search for
k-means Clustering
The k-means algorithm, a straightforward and widely used clustering algorithm. Given a set of objects (records), the goal of clustering or segmentation is to divide
The top 10 algorithm in Data Mining
Here are the list of top 10 algorithms used in the data mining : C4.5 Classification k-means Clustering SVM Statistical learning Apriori Association analysis EM
Data Mining to measure the financial crisis in Governments
When it comes to evaluate the financial condition of the government, the process is focused in 4 dimension which are Sustainability Solvency Flexibility Financial Independence
Code for drawing a line using Bresenham algorithm in Javascript
Here is the snippet for drawing a line in javascript. function drawline(xa,ya,xb,yb){ var dx=Math.abs(xa-xb); var dy=Math.abs(ya-yb); var p=2*dy-dx; var twody=2*dy; var twodydx=2*(dy-dx); var x,y,xend;