Click here to Skip to main content
15,390,901 members
Home / Discussions / Algorithms
   

Algorithms

 
AnswerRe: Optimizing memory usage Pin
Daniel Pfeffer15-Sep-14 22:41
professionalDaniel Pfeffer15-Sep-14 22:41 
GeneralRe: Optimizing memory usage Pin
harold aptroot16-Sep-14 6:28
Memberharold aptroot16-Sep-14 6:28 
QuestionHow .NET CLR understands More languages Pin
pitchaiyan12-Sep-14 5:12
Memberpitchaiyan12-Sep-14 5:12 
GeneralRe: How .NET CLR understands More languages Pin
PIEBALDconsult12-Sep-14 5:31
professionalPIEBALDconsult12-Sep-14 5:31 
GeneralRe: How .NET CLR understands More languages Pin
pitchaiyan12-Sep-14 5:42
Memberpitchaiyan12-Sep-14 5:42 
RantRe: How .NET CLR understands More languages Pin
George Jonsson14-Sep-14 16:23
professionalGeorge Jonsson14-Sep-14 16:23 
AnswerRe: How .NET CLR understands More languages Pin
Richard MacCutchan12-Sep-14 5:58
mveRichard MacCutchan12-Sep-14 5:58 
QuestionAlgorithm to find a given number is prime or not. Pin
Member 110631236-Sep-14 1:21
MemberMember 110631236-Sep-14 1:21 
Hi friends, need help!! i am absloute beginner and need advise. below algorithm is an extrat from a text book but when i try to apply and solve the problem on paper i see that this algorithm will fail. as i get a remainder 0 every digit i key in till 8 (i took number 8 as an examole and applied below)...please advise....also i found that applying this algorithm on number 2 would result in 0 as well and if it is 0 then not prime, then how is this algorithm correct!

1 start
2 read the number num
3 [initialize]
i <--2, flag <--1
4 repeatnsteps 4 through 6 unitl i

modified 6-Sep-14 8:03am.

GeneralRe: Algorithm to find a given number is prime or not. Pin
harold aptroot6-Sep-14 2:32
Memberharold aptroot6-Sep-14 2:32 
GeneralRe: Algorithm to find a given number is prime or not. Pin
Member 110631236-Sep-14 4:01
MemberMember 110631236-Sep-14 4:01 
GeneralRe: Algorithm to find a given number is prime or not. Pin
harold aptroot6-Sep-14 4:10
Memberharold aptroot6-Sep-14 4:10 
GeneralRe: Algorithm to find a given number is prime or not. Pin
Member 110631236-Sep-14 4:14
MemberMember 110631236-Sep-14 4:14 
GeneralRe: Algorithm to find a given number is prime or not. Pin
Member 110631236-Sep-14 4:18
MemberMember 110631236-Sep-14 4:18 
GeneralRe: Algorithm to find a given number is prime or not. Pin
harold aptroot6-Sep-14 4:49
Memberharold aptroot6-Sep-14 4:49 
GeneralRe: Algorithm to find a given number is prime or not. Pin
Member 110631236-Sep-14 6:33
MemberMember 110631236-Sep-14 6:33 
GeneralRe: Algorithm to find a given number is prime or not. Pin
harold aptroot6-Sep-14 7:22
Memberharold aptroot6-Sep-14 7:22 
GeneralRe: Algorithm to find a given number is prime or not. Pin
Member 110631236-Sep-14 7:53
MemberMember 110631236-Sep-14 7:53 
GeneralRe: Algorithm to find a given number is prime or not. Pin
Member 110631237-Sep-14 6:23
MemberMember 110631237-Sep-14 6:23 
GeneralRe: Algorithm to find a given number is prime or not. Pin
Member 110631237-Sep-14 6:23
MemberMember 110631237-Sep-14 6:23 
AnswerRe: Algorithm to find a given number is prime or not. Pin
Richard MacCutchan6-Sep-14 5:06
mveRichard MacCutchan6-Sep-14 5:06 
AnswerRe: Algorithm to find a given number is prime or not. Pin
PIEBALDconsult14-Nov-14 3:37
professionalPIEBALDconsult14-Nov-14 3:37 
QuestionHow to describe method: SQL for frequent pattern discovery Pin
pseudogrammaton4-Sep-14 18:01
Memberpseudogrammaton4-Sep-14 18:01 
AnswerRe: How to describe method: SQL for frequent pattern discovery Pin
Bernhard Hiller4-Sep-14 20:52
MemberBernhard Hiller4-Sep-14 20:52 
GeneralRe: How to describe method: SQL for frequent pattern discovery Pin
pseudogrammaton5-Sep-14 2:55
Memberpseudogrammaton5-Sep-14 2:55 
QuestionBoundless Binary Search Pin
Gregorius van den Hoven27-Aug-14 10:24
MemberGregorius van den Hoven27-Aug-14 10:24 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.