Click here to Skip to main content
16,005,682 members
Home / Discussions / Algorithms
   

Algorithms

 
AnswerRe: Is "Day.Month DayOfWeek" an Unique Date Time? Pin
Luc Pattyn22-Dec-11 12:18
sitebuilderLuc Pattyn22-Dec-11 12:18 
GeneralA more effective way to find the number of points with a given distance between them on a line? Pin
Erik Rude19-Dec-11 22:32
Erik Rude19-Dec-11 22:32 
GeneralRe: A more effective way to find the number of points with a given distance between them on a line? Pin
Richard Andrew x6420-Dec-11 6:49
professionalRichard Andrew x6420-Dec-11 6:49 
GeneralRe: A more effective way to find the number of points with a given distance between them on a line? Pin
IdUnknown21-Dec-11 6:39
IdUnknown21-Dec-11 6:39 
AnswerRe: A more effective way to find the number of points with a given distance between them on a line? Pin
Luc Pattyn21-Dec-11 8:23
sitebuilderLuc Pattyn21-Dec-11 8:23 
GeneralWholesale Sources Pin
Andrew Dudley16-Dec-11 19:46
Andrew Dudley16-Dec-11 19:46 
NewsDiscover How FX Brokers Can Earn On Forex Trading Pin
forex platform30-Nov-11 21:09
forex platform30-Nov-11 21:09 
QuestionDirichlet problem for the unit circle code Pin
Chesnokov Yuriy27-Nov-11 17:19
professionalChesnokov Yuriy27-Nov-11 17:19 
AnswerRe: Dirichlet problem for the unit circle code Pin
Roger Wright9-Dec-11 4:03
professionalRoger Wright9-Dec-11 4:03 
QuestionSafely storing passwords Pin
Bernhard Hiller15-Nov-11 20:55
Bernhard Hiller15-Nov-11 20:55 
AnswerRe: Safely storing passwords Pin
Alan Balkany22-Nov-11 4:06
Alan Balkany22-Nov-11 4:06 
AnswerRe: Safely storing passwords Pin
canlel9-Dec-11 0:08
canlel9-Dec-11 0:08 
AnswerRe: Safely storing passwords Pin
OriginalGriff9-Dec-11 1:06
mveOriginalGriff9-Dec-11 1:06 
QuestionLearning software design patterns Pin
Hypermommy9-Nov-11 22:26
Hypermommy9-Nov-11 22:26 
AnswerRe: Learning software design patterns Pin
PIEBALDconsult10-Nov-11 1:54
mvePIEBALDconsult10-Nov-11 1:54 
GeneralRe: Learning software design patterns Pin
Hypermommy10-Nov-11 2:44
Hypermommy10-Nov-11 2:44 
QuestionA small exercise Pin
PIEBALDconsult9-Nov-11 13:25
mvePIEBALDconsult9-Nov-11 13:25 
AnswerRe: A small exercise Pin
Luc Pattyn9-Nov-11 14:34
sitebuilderLuc Pattyn9-Nov-11 14:34 
if those variables are integers, then for x>1 you know (expand the multiplications to verify):
(x-1)^2 < x*(x-1) < x^2

which means (still assuming x>1):
x-1 < SQRT(y) < x

or
SQRT(y) < x < 1+SQRT(y)

so yes the ceiling should do it, as would the floor of SQRT(y)+1

if those variables are reals, then you either write the formula for a quadratic equation, or you use an iterative process, such as Newton-Raphson's.

Smile | :)
Luc Pattyn [My Articles] Nil Volentibus Arduum

GeneralRe: A small exercise Pin
PIEBALDconsult9-Nov-11 14:35
mvePIEBALDconsult9-Nov-11 14:35 
GeneralRe: A small exercise Pin
Luc Pattyn9-Nov-11 14:37
sitebuilderLuc Pattyn9-Nov-11 14:37 
GeneralRe: A small exercise Pin
PIEBALDconsult9-Nov-11 14:37
mvePIEBALDconsult9-Nov-11 14:37 
AnswerRe: A small exercise Pin
BobJanova10-Nov-11 1:30
BobJanova10-Nov-11 1:30 
AnswerRe: A small exercise Pin
Roger Wright9-Dec-11 4:26
professionalRoger Wright9-Dec-11 4:26 
QuestionSearching for algorithm for text file comparison (with list of differences) Pin
xtomiii9-Nov-11 10:48
xtomiii9-Nov-11 10:48 
AnswerRe: Searching for algorithm for text file comparison (with list of differences) Pin
Luc Pattyn9-Nov-11 11:46
sitebuilderLuc Pattyn9-Nov-11 11:46 

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.