Click here to Skip to main content
15,887,214 members
Home / Discussions / Algorithms
   

Algorithms

 
QuestionHow do I solve the recurrence T(n) = T (n - 1) + c substitution method? Pin
axeemg17-Nov-15 4:12
axeemg17-Nov-15 4:12 
AnswerRe: How do I solve the recurrence T(n) = T (n - 1) + c substitution method? Pin
Patrice T17-Nov-15 17:53
mvePatrice T17-Nov-15 17:53 
QuestionAlgorithm query + request Pin
Member 1214387716-Nov-15 6:53
Member 1214387716-Nov-15 6:53 
AnswerRe: Algorithm query + request Pin
Chris Losinger16-Nov-15 7:01
professionalChris Losinger16-Nov-15 7:01 
AnswerRe: Algorithm query + request Pin
Patrice T17-Nov-15 18:00
mvePatrice T17-Nov-15 18:00 
GeneralHash table load factor Pin
Member 1180386012-Nov-15 13:04
Member 1180386012-Nov-15 13:04 
QuestionAlgorithm needed to find a point on A4 size plane Pin
Member 1213438812-Nov-15 3:45
Member 1213438812-Nov-15 3:45 
AnswerRe: Algorithm needed to find a point on A4 size plane Pin
Richard Deeming12-Nov-15 4:05
mveRichard Deeming12-Nov-15 4:05 
Split the larger triangle into two right-angled triangles, and apply Pythagoras:

<br />
L1² = x² + y²<br />
L2² = (X1 - x)² + y² = X1² - 2·X1·x + x² + y²<br />
<br />
L2² - L1² = X1² - 2·X1·x<br />
2·X1·x = X1² - L2² + L1²<br />
<br />
x = (X1² - L2² + L1²) / 2·X1<br />
<br />
y = ± √(L1² - x²)<br />


NB: there will be two solutions - one with a positive value for y, and one with a negative value.



"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer


AnswerRe: Algorithm needed to find a point on A4 size plane Pin
Chris Maunder12-Nov-15 4:15
cofounderChris Maunder12-Nov-15 4:15 
QuestionFastest way to count nested loops Pin
Member 113783027-Nov-15 2:32
Member 113783027-Nov-15 2:32 
AnswerRe: Fastest way to count nested loops Pin
Patrice T7-Nov-15 4:57
mvePatrice T7-Nov-15 4:57 
GeneralRe: Fastest way to count nested loops Pin
Member 113783027-Nov-15 5:02
Member 113783027-Nov-15 5:02 
GeneralRe: Fastest way to count nested loops Pin
PIEBALDconsult7-Nov-15 5:18
mvePIEBALDconsult7-Nov-15 5:18 
GeneralRe: Fastest way to count nested loops Pin
Member 113783027-Nov-15 5:36
Member 113783027-Nov-15 5:36 
GeneralRe: Fastest way to count nested loops Pin
Patrice T7-Nov-15 7:51
mvePatrice T7-Nov-15 7:51 
GeneralRe: Fastest way to count nested loops Pin
Patrice T7-Nov-15 8:16
mvePatrice T7-Nov-15 8:16 
GeneralRe: Fastest way to count nested loops Pin
Member 113783027-Nov-15 8:27
Member 113783027-Nov-15 8:27 
GeneralRe: Fastest way to count nested loops Pin
Patrice T7-Nov-15 8:52
mvePatrice T7-Nov-15 8:52 
GeneralRe: Fastest way to count nested loops Pin
Member 113783027-Nov-15 9:08
Member 113783027-Nov-15 9:08 
GeneralRe: Fastest way to count nested loops Pin
Patrice T7-Nov-15 9:19
mvePatrice T7-Nov-15 9:19 
GeneralRe: Fastest way to count nested loops Pin
harold aptroot7-Nov-15 5:20
harold aptroot7-Nov-15 5:20 
AnswerRe: Fastest way to count nested loops Pin
Luc Pattyn3-Jan-16 6:37
sitebuilderLuc Pattyn3-Jan-16 6:37 
Questionhow do you calculate a primitive operation in algorithm analysis Pin
Member 118975665-Nov-15 21:15
Member 118975665-Nov-15 21:15 
AnswerRe: how do you calculate a primitive operation in algorithm analysis Pin
Richard Deeming6-Nov-15 2:02
mveRichard Deeming6-Nov-15 2:02 
GeneralRe: how do you calculate a primitive operation in algorithm analysis Pin
Member 118975666-Nov-15 2:57
Member 118975666-Nov-15 2:57 

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.