Click here to Skip to main content
15,889,335 members
Home / Discussions / Algorithms
   

Algorithms

 
AnswerRe: MD5CryptoServiceProvider's ComputeHash doesn't match (x86 vs x64)? Pin
Luc Pattyn20-Aug-09 0:49
sitebuilderLuc Pattyn20-Aug-09 0:49 
QuestionVariable Depth For Loop to create a number sequence... Pin
Aaron @ Think Software17-Aug-09 14:46
professionalAaron @ Think Software17-Aug-09 14:46 
Answer[CrossPost] Variable Depth For Loop to create a number sequence... Pin
Scott Dorman17-Aug-09 15:35
professionalScott Dorman17-Aug-09 15:35 
AnswerRe: Variable Depth For Loop to create a number sequence... Pin
Alan Balkany18-Aug-09 9:44
Alan Balkany18-Aug-09 9:44 
Questiontree recursive traversing . Pin
devboycpp15-Aug-09 5:18
devboycpp15-Aug-09 5:18 
AnswerRe: tree recursive traversing . Pin
Moreno Airoldi15-Aug-09 7:28
Moreno Airoldi15-Aug-09 7:28 
QuestionRegarding time complexity Pin
kirancgi14-Aug-09 1:04
kirancgi14-Aug-09 1:04 
AnswerRe: Regarding time complexity [modified] Pin
Moreno Airoldi14-Aug-09 7:27
Moreno Airoldi14-Aug-09 7:27 
Calculating time complexity for an algorithm means getting an estimate of the number of cycles it must undergo in order to solve the problem.

As a very simple example, a dumb search algorithm on a vector of size n will have time complexity O(n), since it will go through all the vector's cells to find the key - the "big O" indicates the order of time complexity, and is the standard way of writing time complexity.

On the other hand, a binary search will have time complexity O(log2 n), since it will divide the vector in two at each cycle.

Calculating all permutations of a given set of items has time complexity O(n!) (NP-Complete class of time complexity), and so on.

The same goes for calculating space complexity (EDIT: what I mean is if you use for example only a vector of length n, then the space complexity is n, and so on.).

Have a look here[^] for more info. Smile | :)

2+2=5 for very large amounts of 2
(always loved that one hehe!)

modified on Friday, August 14, 2009 2:18 PM

GeneralRe: Regarding time complexity Pin
kirancgi22-Aug-09 6:43
kirancgi22-Aug-09 6:43 
QuestionHi, I'm a freshman for the Digtal image processing, I wonder if HMM or Markov model is the right choice for target tracking. Pin
superwave6-Aug-09 21:51
superwave6-Aug-09 21:51 
AnswerRe: Hi, I'm a freshman for the Digtal image processing, I wonder if HMM or Markov model is the right choice for target tracking. Pin
fresi8-Aug-09 1:50
fresi8-Aug-09 1:50 
GeneralRe: Hi, I'm a freshman for the Digtal image processing, I wonder if HMM or Markov model is the right choice for target tracking. Pin
superwave8-Aug-09 3:27
superwave8-Aug-09 3:27 
GeneralRe: Hi, I'm a freshman for the Digtal image processing, I wonder if HMM or Markov model is the right choice for target tracking. Pin
Tim Craig9-Aug-09 8:48
Tim Craig9-Aug-09 8:48 
GeneralRe: Hi, I'm a freshman for the Digtal image processing, I wonder if HMM or Markov model is the right choice for target tracking. [modified] Pin
superwave9-Aug-09 18:33
superwave9-Aug-09 18:33 
QuestionHow to extract data from web Pin
Rakesh Ranjan Dey6-Aug-09 2:17
Rakesh Ranjan Dey6-Aug-09 2:17 
AnswerRe: How to extract data from web Pin
Super Lloyd6-Aug-09 3:13
Super Lloyd6-Aug-09 3:13 
QuestionNeed some logic help. Pin
benjamin yap4-Aug-09 15:00
benjamin yap4-Aug-09 15:00 
AnswerRe: Need some logic help. Pin
Luc Pattyn4-Aug-09 15:38
sitebuilderLuc Pattyn4-Aug-09 15:38 
GeneralRe: Need some logic help. [modified] Pin
benjamin yap4-Aug-09 17:18
benjamin yap4-Aug-09 17:18 
GeneralRe: Need some logic help. Pin
Luc Pattyn4-Aug-09 23:25
sitebuilderLuc Pattyn4-Aug-09 23:25 
QuestionLexical Analysis Useful for Other Things as Well? Pin
Richard Andrew x644-Aug-09 5:31
professionalRichard Andrew x644-Aug-09 5:31 
AnswerRe: Lexical Analysis Useful for Other Things as Well? Pin
Luc Pattyn4-Aug-09 6:13
sitebuilderLuc Pattyn4-Aug-09 6:13 
AnswerRe: Lexical Analysis Useful for Other Things as Well? Pin
N a v a n e e t h4-Aug-09 7:57
N a v a n e e t h4-Aug-09 7:57 
AnswerRe: Lexical Analysis Useful for Other Things as Well? Pin
harold aptroot6-Aug-09 2:58
harold aptroot6-Aug-09 2:58 
AnswerRe: Lexical Analysis Useful for Other Things as Well? Pin
N a v a n e e t h6-Aug-09 18:10
N a v a n e e t h6-Aug-09 18:10 

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.