Click here to Skip to main content
15,895,256 members
Home / Discussions / Algorithms
   

Algorithms

 
AnswerRe: Shortest Path on Unweighted Edges Pin
Luc Pattyn24-Jun-12 18:07
sitebuilderLuc Pattyn24-Jun-12 18:07 
GeneralRe: Shortest Path on Unweighted Edges Pin
maxx231024-Jun-12 18:33
maxx231024-Jun-12 18:33 
AnswerRe: Shortest Path on Unweighted Edges Pin
Luc Pattyn24-Jun-12 19:04
sitebuilderLuc Pattyn24-Jun-12 19:04 
AnswerRe: Shortest Path on Unweighted Edges Pin
BupeChombaDerrick25-Jun-12 11:48
BupeChombaDerrick25-Jun-12 11:48 
AnswerRe: Shortest Path on Unweighted Edges Pin
Luc Pattyn25-Jun-12 11:56
sitebuilderLuc Pattyn25-Jun-12 11:56 
GeneralRe: Shortest Path on Unweighted Edges Pin
BupeChombaDerrick25-Jun-12 14:56
BupeChombaDerrick25-Jun-12 14:56 
GeneralRe: Shortest Path on Unweighted Edges Pin
Tadeusz Westawic9-Jul-12 5:00
Tadeusz Westawic9-Jul-12 5:00 
QuestionColor mixing algorithm Pin
Kobi_Z14-Jun-12 5:03
Kobi_Z14-Jun-12 5:03 
hi, my question is
if i have 3 basic colors (each made of rgb):
color1 : R:150, B:zero, G:255
color2 : R:255, B:150, G:zero
color3 : R:zero, B:255, G:150
 
They can be mixed using the formula :
new_color = floor(X*0.9)+floor(Y*0.1)
X and Y can be a basic color or a new color allready created by using the formula.
 
for example, if i want to mix color1 as main with color3 :
new_color(R,B,G) = (floor(0.9*150)+floor(0.1*0) , floor(0.9*0)+floor(0.1*255) , floor(0.9*255)+floor(0.1*150) ) = (135, 25, 244).
 
I need to find a way to mix the colors in order to get a desired color, for example : R:187 B:135 G:201
so far i wrote a "brute force" program which go all over the combinations of basic colors (runing for 7 days now got up to 16 mixing steps) and a bit smarter AStar algorithm (got good reults for small sequnces, letting it run for the week end...).
 
hope there is a smarter and faster way to solve the problem.
Btw, i code with matlab or vb.
Thanks.
AnswerRe: Color mixing algorithm - Repost Pin
Richard MacCutchan14-Jun-12 5:38
mveRichard MacCutchan14-Jun-12 5:38 
GeneralRe: Color mixing algorithm - Repost Pin
Kobi_Z14-Jun-12 7:09
Kobi_Z14-Jun-12 7:09 
QuestionRe: Color mixing algorithm Pin
BupeChombaDerrick16-Jun-12 13:14
BupeChombaDerrick16-Jun-12 13:14 
AnswerRe: Color mixing algorithm Pin
Kobi_Z17-Jun-12 7:41
Kobi_Z17-Jun-12 7:41 
GeneralRe: Color mixing algorithm Pin
BupeChombaDerrick17-Jun-12 13:50
BupeChombaDerrick17-Jun-12 13:50 
GeneralRe: Color mixing algorithm Pin
Kobi_Z12-Jul-12 21:14
Kobi_Z12-Jul-12 21:14 
GeneralRe: Color mixing algorithm Pin
BupeChombaDerrick17-Jun-12 14:22
BupeChombaDerrick17-Jun-12 14:22 
GeneralRe: Color mixing algorithm Pin
Kobi_Z12-Jul-12 21:15
Kobi_Z12-Jul-12 21:15 
AnswerRe: Color mixing algorithm Pin
Luc Pattyn17-Jun-12 8:05
sitebuilderLuc Pattyn17-Jun-12 8:05 
GeneralRe: Color mixing algorithm Pin
Kobi_Z17-Jun-12 9:05
Kobi_Z17-Jun-12 9:05 
GeneralRe: Color mixing algorithm Pin
Luc Pattyn17-Jun-12 9:10
sitebuilderLuc Pattyn17-Jun-12 9:10 
GeneralRe: Color mixing algorithm Pin
BupeChombaDerrick17-Jun-12 13:43
BupeChombaDerrick17-Jun-12 13:43 
GeneralRe: Color mixing algorithm Pin
Kobi_Z26-Jun-12 7:12
Kobi_Z26-Jun-12 7:12 
GeneralRe: Color mixing algorithm Pin
BupeChombaDerrick26-Jun-12 14:22
BupeChombaDerrick26-Jun-12 14:22 
AnswerRe: Color mixing algorithm Pin
YvesDaoust18-Jun-12 20:50
YvesDaoust18-Jun-12 20:50 
QuestionAND/OR Graph Search Pin
chipchip_boy25-May-12 21:20
chipchip_boy25-May-12 21:20 
AnswerRe: AND/OR Graph Search PinPopular
Richard MacCutchan25-May-12 23:02
mveRichard MacCutchan25-May-12 23:02 

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.