Pestaninha Posted February 14, 2011 Share Posted February 14, 2011 Graças a colaboração intensa de nosso amigo Natanael, estou obtendo algumas ideias mirabolantes de otimização de Pestanilhas.A nova matriz de 6 campeã do nosso amigo postada em seu outro topico é esta aqui:1 2 3 4 9 11 12 13 15 17 19 21 22 23 251 2 5 7 10 11 12 13 14 16 17 18 20 24 252 4 5 6 7 9 11 14 15 16 18 19 22 23 242 3 4 5 6 8 10 11 13 15 20 21 23 24 251 4 7 8 9 10 12 16 17 19 20 21 22 23 241 3 5 6 7 10 12 13 15 16 18 19 20 21 22Meu método supõe na lei de Descartes de que dividir é conquistar, logo separamos as pestanilhas:A1 2 31 2 52 4 52 3 41 4 71 3 5B22 23 2520 24 2522 23 2423 24 2522 23 2420 21 22E o core de 9 dezenas:4 9 11 12 13 15 17 19 217 10 11 12 13 14 16 17 186 7 9 11 14 15 16 18 195 6 8 10 11 13 15 20 218 9 10 12 16 17 19 20 216 7 10 12 13 15 16 18 19Tive que construir um pequeno programa que combinasse as pestanilhas com os cores diversos e tambem para gerar o core aleatoriamente de acordo com a inversa da união dos conjuntos A e B. Com essa inversa eu sorteio 9 dezenas aleatoriamente e junto como se fosse um novo core, formando um jogo de 15 dezenas.Aqui o resultado dos dois:Core fixo: 01 02 03 04 09 11 12 13 15 17 19 21 22 23 24 01 02 03 05 06 08 10 11 13 15 20 21 22 23 24 01 02 03 05 06 08 10 11 13 15 20 21 22 23 25 01 02 03 05 06 08 10 11 13 15 20 21 23 24 25 01 02 03 06 07 09 11 14 15 16 18 19 20 24 25 01 02 03 06 07 09 11 14 15 16 18 19 22 23 24 01 02 03 06 07 09 11 14 15 16 18 19 22 23 25 01 02 03 06 07 10 12 13 15 16 18 19 20 21 22 01 02 03 07 10 11 12 13 14 16 17 18 20 21 22 01 02 03 07 10 11 12 13 14 16 17 18 22 23 24 01 02 03 07 10 11 12 13 14 16 17 18 23 24 25 01 02 03 08 09 10 12 16 17 19 20 21 22 23 25 01 02 04 05 09 11 12 13 15 17 19 21 23 24 25 01 02 05 06 07 09 11 14 15 16 18 19 23 24 25 01 02 05 06 07 10 12 13 15 16 18 19 23 24 25 01 02 05 07 10 11 12 13 14 16 17 18 20 21 22 01 02 05 08 09 10 12 16 17 19 20 21 22 23 24 01 03 04 05 09 11 12 13 15 17 19 21 22 23 24 01 03 04 05 09 11 12 13 15 17 19 21 22 23 25 01 03 05 06 07 09 11 14 15 16 18 19 20 21 22 01 03 05 06 07 09 11 14 15 16 18 19 23 24 25 01 03 05 06 07 10 12 13 15 16 18 19 20 21 22 01 03 05 07 10 11 12 13 14 16 17 18 20 24 25 01 03 05 07 10 11 12 13 14 16 17 18 22 23 25 01 03 05 08 09 10 12 16 17 19 20 21 22 23 25 01 03 05 08 09 10 12 16 17 19 20 21 23 24 25 01 04 05 06 07 08 10 11 13 15 20 21 22 23 24 02 03 04 05 06 08 10 11 13 15 20 21 22 23 24 02 03 04 06 07 09 11 14 15 16 18 19 22 23 24 02 03 04 07 10 11 12 13 14 16 17 18 20 21 22 02 03 04 07 10 11 12 13 14 16 17 18 20 24 25 02 03 04 07 10 11 12 13 14 16 17 18 22 23 24 02 03 04 08 09 10 12 16 17 19 20 21 22 23 24 02 04 05 06 07 09 11 14 15 16 18 19 22 23 24 02 04 05 06 07 09 11 14 15 16 18 19 22 23 25 02 04 05 06 07 09 11 14 15 16 18 19 23 24 25 02 04 05 06 07 10 12 13 15 16 18 19 23 24 25 02 04 05 07 10 11 12 13 14 16 17 18 20 21 22 02 04 05 07 10 11 12 13 14 16 17 18 22 23 24 02 04 05 07 10 11 12 13 14 16 17 18 22 23 25 02 04 05 08 09 10 12 16 17 19 20 21 22 23 24Obs: no core fixo houve 9 repetições excluidas pelo Cologa no fechamento.Core variável: 01 02 03 04 05 06 07 13 14 17 18 20 21 22 24 01 02 03 04 05 06 08 10 13 15 20 21 22 23 24 01 02 03 04 05 06 08 13 15 20 21 22 23 24 25 01 02 03 04 05 06 09 11 13 14 15 19 22 23 25 01 02 03 04 05 06 09 12 13 14 17 20 21 22 23 01 02 03 04 05 07 09 10 14 16 17 20 21 22 23 01 02 03 04 05 07 11 12 18 19 20 21 22 24 25 01 02 03 04 05 09 11 12 13 14 19 21 22 23 25 01 02 03 04 07 11 13 14 18 19 20 21 22 23 24 01 02 03 05 06 07 09 15 16 17 21 22 23 24 25 01 02 03 05 07 08 09 10 11 14 18 21 22 23 25 01 02 03 05 07 08 11 13 17 18 19 22 23 24 25 01 02 03 05 07 09 10 11 13 14 15 18 20 21 22 01 02 03 05 07 12 15 16 17 19 20 21 22 23 24 01 02 03 06 08 09 13 14 15 19 20 21 23 24 25 01 02 03 06 08 10 12 13 16 18 19 20 22 23 25 01 02 04 05 06 07 12 13 14 16 18 19 20 24 25 01 02 04 05 07 08 11 15 16 18 20 22 23 24 25 01 02 04 06 07 09 10 15 16 19 21 22 23 24 25 01 02 04 07 08 10 13 15 17 18 19 20 22 23 25 01 02 05 06 09 11 13 15 18 19 20 21 22 23 25 01 03 04 05 06 07 08 09 10 12 21 22 23 24 25 01 03 04 05 07 08 09 13 14 15 20 21 23 24 25 01 03 04 05 07 08 09 14 15 17 18 20 21 22 24 01 03 04 05 07 08 11 13 14 17 18 22 23 24 25 01 03 04 05 07 10 11 14 15 16 18 22 23 24 25 01 03 04 05 08 09 10 12 13 16 17 19 22 23 24 01 03 04 05 10 11 13 14 17 18 20 21 22 23 25 01 03 04 07 09 14 16 18 19 20 21 22 23 24 25 01 03 05 06 08 10 14 17 18 19 20 21 22 23 25 01 04 05 07 08 10 12 14 15 16 20 21 22 23 25 01 04 06 07 09 12 14 15 16 17 18 20 21 22 25 01 04 07 08 11 12 14 15 16 20 21 22 23 24 25 02 03 04 05 06 07 09 10 13 14 15 16 23 24 25 02 03 04 05 06 07 09 10 14 17 19 21 23 24 25 02 03 04 05 06 09 10 12 15 18 20 21 22 23 24 02 03 04 05 08 09 12 16 17 19 20 21 22 23 25 02 03 04 07 08 09 10 11 13 14 19 20 21 22 23 02 04 05 06 07 08 12 13 14 17 19 20 22 24 25 02 04 05 06 07 12 13 15 16 17 20 21 23 24 25 02 04 05 06 07 12 15 16 19 20 21 22 23 24 25Criei este programa pois a recombinação core + pestanilha exige validaçao. Não há como combinar por exemplo a pestanilha 1 4 7 com o core 7 10 12 13 15 16 18 19, já que o numero 7 se repetiria, com isso torna a geração das dezenas maçante e sujeita a erros. O mesmo acontece nos finais.Gostaria de compartilhar o metodo pois ainda está em evolução. Os créditos aí são todas do nosso mestre, estou apenas tentando aproveitar de suas sábias contribuições. Quote Link to comment Share on other sites More sharing options...
jcbms Posted February 14, 2011 Share Posted February 14, 2011 Muito bem, muito bem, muito bemmmmmmmmmmmmmmmm!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Quote Link to comment Share on other sites More sharing options...
Pestaninha Posted February 15, 2011 Author Share Posted February 15, 2011 Core variável com certeza! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.