Autor Beitrag
beshig
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 110
Erhaltene Danke: 1

WIN 2000, WIN XP, WIN 2003, Debian Linux
Delphi 7 Personal, Delphi 2005 Personal
BeitragVerfasst: Mi 15.12.04 18:48 
Ich wollte mal etwas prinzipielles fragen, und hoffe, es verstößt gegen keine Regeln. Angenommen, ich habe am Ende des Gewinnspiels alle Buchstaben gesammelt. Wie füge ich diese am Besten zu einem Wort zusammen? Wie kann man da vorgehen?
Gausi
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 8554
Erhaltene Danke: 481

Windows 7, Windows 10
D7 PE, Delphi XE3 Prof, Delphi 10.3 CE
BeitragVerfasst: Mi 15.12.04 19:08 
Och...das ist ganz einfach. Es gibt ja nur 11 Buchstaben, das sind gerade mal 11! = 39.916.800 mögliche Worte. Diese kannst du einfach durch nen rekursiven Algorithmus in eine Stringlist packen und diese dann mit nem Wörterbuch abgleichen. :lol:

Dummerweise fehlen mir bisher so ungefähr 2 Buchstaben, so dass ich noch ein bisserl mehr Auswahl habe...

_________________
We are, we were and will not be.
GTA-Place
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
EE-Regisseur
Beiträge: 5248
Erhaltene Danke: 2

WIN XP, IE 7, FF 2.0
Delphi 7, Lazarus
BeitragVerfasst: Mi 15.12.04 19:13 
Was ist, wenn 4 Buchstaben fehlen? ^^

_________________
"Wer Ego-Shooter Killerspiele nennt, muss konsequenterweise jeden Horrorstreifen als Killerfilm bezeichnen." (Zeit.de)
Gausi
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 8554
Erhaltene Danke: 481

Windows 7, Windows 10
D7 PE, Delphi XE3 Prof, Delphi 10.3 CE
BeitragVerfasst: Mi 15.12.04 19:19 
naja, dann hast du ungefähr 26*26*26*26*7*6*5*4*3*2 Möglichkeiten. Kannst aber ein paar wieder rausnehmen - je nachdem, wieviele doppelte Buchstaben vorkommen.

_________________
We are, we were and will not be.
Kroni
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 720

Win 98, Win ME, Win2k, Win XP
D3 Pro
BeitragVerfasst: Mi 15.12.04 20:00 
hmmm, ja das Programm hab ich schon fertig dafür....mir fehlt nur noch der automatsiche Abgleich mit einem Wörterbuch *gggg*
nee scherz...aber ist ja normal kein Prob das zu Coden....
AXMD
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 4006
Erhaltene Danke: 7

Windows 10 64 bit
C# (Visual Studio 2019 Express)
BeitragVerfasst: Mi 15.12.04 20:51 
Müsste doch bestimmt was mit dem Wörterbuch von Word zu machen sein. Die Frage ist nur, wiviele Wörter dir das Wörterbuch bestätigt, obwohl es sie gar nicht gibt ;)

AXMD
GTA-Place
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
EE-Regisseur
Beiträge: 5248
Erhaltene Danke: 2

WIN XP, IE 7, FF 2.0
Delphi 7, Lazarus
BeitragVerfasst: Mi 15.12.04 20:57 
Ne, mit LEO abgleichen. Die haben mehr Wörter als Word.
Einfach prüfen, ob die Message "Die Suche nach X lieferte keine Treffer" und schon kommt das Wort net in Frage.

_________________
"Wer Ego-Shooter Killerspiele nennt, muss konsequenterweise jeden Horrorstreifen als Killerfilm bezeichnen." (Zeit.de)
The-FoX
ontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic starofftopic star
Beiträge: 203

Win XP
D6 Pers
BeitragVerfasst: Mi 15.12.04 21:04 
GTA-Place hat folgendes geschrieben:
Ne, mit LEO abgleichen. Die haben mehr Wörter als Word.
Einfach prüfen, ob die Message "Die Suche nach X lieferte keine Treffer" und schon kommt das Wort net in Frage.


Da müsste man aber einen Weg finden das Wörterbuch direkt anzusprechen. Bei 40'000 Durchläufen wäre deine Methode zuviel verschenkte Zeit.
AXMD
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 4006
Erhaltene Danke: 7

Windows 10 64 bit
C# (Visual Studio 2019 Express)
BeitragVerfasst: Mi 15.12.04 21:06 
Sonst meinen die von leo.com noch wir planen eine DoS-Attacke ^^

AXMD