I have a course in AI and I have an exercise to write a code producing the shortest possible sentence (in term of number of character) I have a list2D of departure It's just word list no real english sentence.I do not need to have a correct sentence in English
data=[["One","Two","He","You","a"],["have","had","make","do"],["red","blue"]]
I have to make a sentence of 3 words as small as possible (in number of character), the solution for the example i presented before would be "a do red"
here is what I did in genetic algorithm, I seek the most value patite by modifying each gen 0.05% of the pop.
An individual is a sentence, A population is a phrase set , I try to generate the smallest possible sentence.
the problem is that the value does not change. Thanks in advance for your help.