Click here to Skip to main content
15,890,186 members
Home / Discussions / Algorithms
   

Algorithms

 
GeneralRe: Scheduling with constraints Pin
Richard MacCutchan3-Nov-23 7:06
mveRichard MacCutchan3-Nov-23 7:06 
QuestionRound-robin tournament scheduling, with teams that may share their home field Pin
Mad Bat30-Oct-23 7:00
Mad Bat30-Oct-23 7:00 
AnswerRe: Round-robin tournament scheduling, with teams that may share their home field Pin
Gerry Schmitz30-Oct-23 7:25
mveGerry Schmitz30-Oct-23 7:25 
QuestionAlgorithm Sequence Programming Competition Pin
Member 1612077221-Oct-23 3:38
Member 1612077221-Oct-23 3:38 
AnswerRe: Algorithm Sequence Programming Competition Pin
Gerry Schmitz21-Oct-23 7:42
mveGerry Schmitz21-Oct-23 7:42 
AnswerRe: Algorithm Sequence Programming Competition Pin
Mircea Neacsu21-Oct-23 12:26
Mircea Neacsu21-Oct-23 12:26 
GeneralRe: Algorithm Sequence Programming Competition Pin
Member 1612077221-Oct-23 16:58
Member 1612077221-Oct-23 16:58 
AnswerRe: Algorithm Sequence Programming Competition Pin
Mircea Neacsu21-Oct-23 19:48
Mircea Neacsu21-Oct-23 19:48 
If you look at the original expression for n(x), you see that each of the values -a[i] is a root of the polynomial (because the term x+a[i] becomes 0). Now, a polynomial with k roots must be a polynomial of degree k, hence we can write it in the form n(x)= x^k + c[1]*x^(k-1) + … c[k]. Moreover, coefficients c[i] are related to roots -a[i] through Vieta's formulas - Wikipedia[^].

Looking at the original assignment, I see that I should have called the polynomial “n1(x)” and say that n(x) = n1(x)/d, or equivalent, n1(x)=n(x)*d. It doesn’t make much difference as we get to the system of equations:
n[1]*d = 1^k + 1^(k-1)*c[1]+… +c[k]
n[2]*d = 2^k + 2^(k-1)*c[2]+… +c[k]
. . .
this is the system of (k+1) equations that needs to be solved to find the values of d, c[1],… c[k]
Mircea

GeneralRe: Algorithm Sequence Programming Competition Pin
Gerry Schmitz22-Oct-23 9:05
mveGerry Schmitz22-Oct-23 9:05 
QuestionCollision Response in a RTS game, still trying to figure it out. Pin
Calin Negru23-Sep-23 7:32
Calin Negru23-Sep-23 7:32 
AnswerRe: Collision Response in a RTS game, still trying to figure it out. Pin
Gerry Schmitz23-Sep-23 7:48
mveGerry Schmitz23-Sep-23 7:48 
GeneralRe: Collision Response in a RTS game, still trying to figure it out. Pin
Calin Negru23-Sep-23 22:21
Calin Negru23-Sep-23 22:21 
AnswerRe: Collision Response in a RTS game, still trying to figure it out. Pin
Member 1614278528-Nov-23 6:53
Member 1614278528-Nov-23 6:53 
AnswerRe: Does D correctly simulated by H terminate normally? Pin
Richard MacCutchan16-May-23 22:05
mveRichard MacCutchan16-May-23 22:05 
GeneralRe: Does D correctly simulated by H terminate normally? Pin
Richard Deeming16-May-23 22:52
mveRichard Deeming16-May-23 22:52 
GeneralRe: Does D correctly simulated by H terminate normally? Pin
Dave Kreskowiak17-May-23 3:18
mveDave Kreskowiak17-May-23 3:18 
GeneralRe: Does D correctly simulated by H terminate normally? Pin
Dave Kreskowiak17-May-23 4:07
mveDave Kreskowiak17-May-23 4:07 
GeneralRe: Does D correctly simulated by H terminate normally? Pin
Dave Kreskowiak17-May-23 6:22
mveDave Kreskowiak17-May-23 6:22 
GeneralRe: Does D correctly simulated by H terminate normally? Pin
Dave Kreskowiak17-May-23 6:35
mveDave Kreskowiak17-May-23 6:35 
GeneralRe: Does D correctly simulated by H terminate normally? Pin
Dave Kreskowiak17-May-23 6:44
mveDave Kreskowiak17-May-23 6:44 
GeneralRe: Does D correctly simulated by H terminate normally? Pin
Dave Kreskowiak17-May-23 6:54
mveDave Kreskowiak17-May-23 6:54 
GeneralRe: Does D correctly simulated by H terminate normally? Pin
jschell18-May-23 5:57
jschell18-May-23 5:57 
GeneralRe: Does D correctly simulated by H terminate normally? Pin
jschell19-May-23 7:36
jschell19-May-23 7:36 
GeneralRe: Does D correctly simulated by H terminate normally? Pin
jschell19-May-23 7:40
jschell19-May-23 7:40 
GeneralRe: Does D correctly simulated by H terminate normally? Pin
Gerry Schmitz18-May-23 18:32
mveGerry Schmitz18-May-23 18:32 

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.