Hey, i\'m looking for some help to find an algorithm which divides an array of positive numbers into k-parts so that each part has the (approximately) the same sum ... let\'s say we have
EDIT: See my answer below for why I am a fool. There is still a riddle in this that I would love to have answered though.
A set is passed to this method below, and a length of a bar is also passed in. The solution should output the numbers from the set which give the minimum amount of waste if certain nu开发者_开发问答mb
i seek if somebody could help me out with my room searching algorithm I\'m trying to implement a backtracking algorhitm for maze solving. I\'m stuck in the place where i should memorize the rooms whic
Hey there, I am building a program that generates a maze so I can later translate the path to my graphical part. I have most of it working, however, every time you can just take the east and south rou
I\'m trying to make a program that goes through all squares of a chessboard (size doesn\'t really matter, but for now it\'s 6x6) with a knight, called a \"Knight\'s Tour\" check it out on wiki.
I am having a problem with my backtracking function it loops with certain data I can\'t write here the whole program code but can put here my function.
I\'m given a set of strings called \"dictionary\", stored as a field, which represents a dictionary of words.
I am writing a sudoku solver. It has been a long time since I have touched prolog, thus I don\'t remember everything regarding unification, backtracking, etc. I think that I cause the system to backtr
I have a vector of strings, all of the same size. I have to build as a solution a list of strings that fulfill some conditions.