Click here to Skip to main content
15,923,376 members
Home / Discussions / Algorithms
   

Algorithms

 
GeneralRe: Trapezoid interpolation Pin
Ralf Meier8-Feb-17 10:04
mveRalf Meier8-Feb-17 10:04 
GeneralRe: Trapezoid interpolation Pin
Joan M9-Feb-17 8:58
professionalJoan M9-Feb-17 8:58 
GeneralRe: Trapezoid interpolation Pin
Patrice T9-Feb-17 11:45
mvePatrice T9-Feb-17 11:45 
GeneralRe: Trapezoid interpolation Pin
Joan M9-Feb-17 21:57
professionalJoan M9-Feb-17 21:57 
GeneralRe: Trapezoid interpolation Pin
Patrice T9-Feb-17 22:53
mvePatrice T9-Feb-17 22:53 
GeneralRe: Trapezoid interpolation Pin
Joan M9-Feb-17 23:10
professionalJoan M9-Feb-17 23:10 
GeneralRe: Trapezoid interpolation Pin
Patrice T9-Feb-17 23:21
mvePatrice T9-Feb-17 23:21 
GeneralRe: Trapezoid interpolation Pin
Joan M9-Feb-17 23:28
professionalJoan M9-Feb-17 23:28 
Yes, that would be an option, but I would prefer to solve it mathematically and with only one cycle.

Anyway, that binary (or dichotomy) search would do it more or less well.

Usually the dichotomy search is used to find exact values, in this case I should search for two states in each cycle:

vmax + 1 is not OK
vmax is ok

But that's the last resort if all the other calculations fail.

Thank you! Thumbs Up | :thumbsup:
GeneralRe: Trapezoid interpolation Pin
Joan M12-Feb-17 3:03
professionalJoan M12-Feb-17 3:03 
QuestionLongest subarray: minimum first element, maximum last element Pin
Member 105660894-Feb-17 23:44
Member 105660894-Feb-17 23:44 
AnswerRe: Longest subarray: minimum first element, maximum last element Pin
Richard Andrew x645-Feb-17 3:25
professionalRichard Andrew x645-Feb-17 3:25 
QuestionRe: Longest subarray: minimum first element, maximum last element Pin
Member 105660895-Feb-17 3:28
Member 105660895-Feb-17 3:28 
AnswerRe: Longest subarray: minimum first element, maximum last element Pin
Patrice T8-Feb-17 9:42
mvePatrice T8-Feb-17 9:42 
AnswerRe: Longest subarray: minimum first element, maximum last element Pin
Patrice T8-Feb-17 9:52
mvePatrice T8-Feb-17 9:52 
GeneralRe: Longest subarray: minimum first element, maximum last element Pin
Member 105660898-Feb-17 10:10
Member 105660898-Feb-17 10:10 
GeneralRe: Longest subarray: minimum first element, maximum last element Pin
Patrice T8-Feb-17 10:56
mvePatrice T8-Feb-17 10:56 
GeneralRe: Longest subarray: minimum first element, maximum last element Pin
Member 105660898-Feb-17 15:15
Member 105660898-Feb-17 15:15 
QuestionAccounting aging algorithm help Pin
kimbhoot26-Jan-17 5:52
kimbhoot26-Jan-17 5:52 
AnswerRe: Accounting aging algorithm help Pin
Gerry Schmitz26-Jan-17 7:08
mveGerry Schmitz26-Jan-17 7:08 
GeneralRe: Accounting aging algorithm help Pin
kimbhoot26-Jan-17 10:51
kimbhoot26-Jan-17 10:51 
GeneralRe: Accounting aging algorithm help Pin
Gerry Schmitz26-Jan-17 11:04
mveGerry Schmitz26-Jan-17 11:04 
GeneralSo I Wrote A Backward Version Of KMP Algorithm In C# That Searches String From Right Pin
Robert Vandenberg Huang9-Jan-17 18:30
professionalRobert Vandenberg Huang9-Jan-17 18:30 
GeneralRe: So I Wrote A Backward Version Of KMP Algorithm In C# That Searches String From Right Pin
Gerry Schmitz26-Jan-17 7:18
mveGerry Schmitz26-Jan-17 7:18 
QuestionMachine Learning for a translation algorithm between numbers and words Pin
Member 1291942623-Dec-16 4:52
Member 1291942623-Dec-16 4:52 
AnswerRe: Machine Learning for a translation algorithm between numbers and words Pin
Richard MacCutchan23-Dec-16 5:06
mveRichard MacCutchan23-Dec-16 5:06 

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.