Java feat Logic Tutorial - Sudoku solver with Sat4J

Sdílet
Vložit
  • čas přidán 11. 09. 2024
  • Playlist: • Java Tutorial - Algori...
    In this tutorial comes the long awaited Sudoku solver in Java.
    ❤❤❤ Early access to tutorials, polls, live events and downloads ❤❤❤
    ❤❤❤ www.patreon.co... ❤❤❤
    ❤❤❤ Not up for Patreon? ❤❤❤
    ❤❤❤ www.paypal.me/... ❤❤❤
    🌍 Website
    🌍 the-morpheus.de
    ¯\_(ツ)_/¯ Join the Community ¯\_(ツ)_/¯
    ** the-morpheus.d... **
    ** / themorpheustuts **
    ( ͡° ͜ʖ ͡°) More news? More code?
    ℱ / themorpheustutorials
    🐦 / themorpheustuts
    🐙 github.com/The...
    You order from Amazon? Order through me, costs you zero and you help me out
    "-(¯`-.-'¯)-" amzn.to/2slBSgH
    Video requests?
    🎁 docs.google.co...
    Questions? Feedback? Write me!
    ✉ www.patreon.co...
    ✉ / themorpheustutorials
    ✉ the-morpheus.d...
    or just write a comment :)
    Playlist: • Logik Tutorial

Komentáře • 33

  • @namvuphuong6897
    @namvuphuong6897 Před 8 lety +3

    Thank you, it's really hard to find a SAT4J tutorial video like this. I wish some one can translate it to English

    • @TheMorpheusTutorials
      @TheMorpheusTutorials  Před 8 lety +1

      +Nam Vũ Phương thanks for your compliment =) Sadly my channel is all German, but you can still copy the source code =)

    • @namvuphuong6897
      @namvuphuong6897 Před 8 lety +2

      +The Morpheus Tutorials Yup, I just think it's better if I can understand all xD

    • @TheMorpheusTutorials
      @TheMorpheusTutorials  Před 8 lety +4

      +Nam Vũ Phương yea, would be better, but my English is sadly not that fluently. So making tutorials in a foreign language is probably a level above my competence :D Sorry ;)

  • @Kunait.
    @Kunait. Před 8 lety +1

    omg, die Idee ist geil. Dann muss ich wohl erst mal das Logik-Video sehen :(

    • @TheMorpheusTutorials
      @TheMorpheusTutorials  Před 8 lety

      +RocketlauncherLP brauchst du nicht mal unbedingt. Grundkenntnisse reichen eigentlich.

  • @QDuckselbstreich
    @QDuckselbstreich Před 8 lety

    echt geiles Tutorial. danke

  • @klauskinski679
    @klauskinski679 Před 7 lety

    Interessanter Ansatz, aber auch etwas statisch, wenn ich das richtig verstanden habe. Sprich, du kannst nur diesen einen Typ von Sudoku lösen, der ja noch recht übersichtlich ist und doch mehr als eine Hand For-Schleifen braucht. Sudokus mit Zusatzbedingung, wie zwei Diagonalen, oder Block in Block würden wiederum neue Literale benötigen, die aufzuschreiben dann sicher mehr Arbeit macht als das Sudoku einfach zu lösen. Übrigens Das Beispiel war in 3 min. per Hand gelöst, ledigt das Abstreichen elektronisch unterstützt. Was mir auch fehlt, ist die Eindeutigkeit des Sudokus, weil nur ein Sudoku was eindeutig lösbar ist, also nur eine Lösung hat, auch Sudoku heißen darf - so ist das definiert. Hat man etwas zwei Lösungen, müsste man eine weiter Ziffer fest vorgeben, so kommt es dann auch, dasw ein normales Sudoku ohne weitere Zusatzbedingungen mindesten 17 Zahlen vorgegeben haben muß, meisten sind es aber bis zu 23 Zahlen.

  • @kvnsldvr4772
    @kvnsldvr4772 Před 5 lety

    bester mann!

  • @lucasz8105
    @lucasz8105 Před rokem

    The subtitles are disabled, would it be possible to activate or make available the automatic generation and translation of CZcams subtitles?

  • @lucasz8105
    @lucasz8105 Před rokem

    Where is the source code?

  • @Marco-zu1jm
    @Marco-zu1jm Před 8 lety

    Wieso überprüft man, ob 7 rauskommt in der if-Bedienung?
    Ich hätte gedacht, dass man auf -7 prüft, da man ja den Fall herausfiltern will, in dem nur eins true ist und die restlichen false.

    • @deimos5579
      @deimos5579 Před 7 lety

      weil der eine Wert der wahr ist -1 ist und die Werte die falsch sind 1. Wir dürfen nur einen richtigen Wert haben und die restlichen Werte müssen falsch sein also 1 + 1 + 1... + (-1) = 7

  • @alialmin6475
    @alialmin6475 Před 6 lety

    how can i do a generator using SATsolver?thank you for your help sir

    • @TheMorpheusTutorials
      @TheMorpheusTutorials  Před 6 lety

      You can generate random values and try if they are solvable like we did here :)
      Keep doing it, until it's solvable.

  • @alialmin6475
    @alialmin6475 Před 6 lety

    i get only UNSAT on output help

    • @TheMorpheusTutorials
      @TheMorpheusTutorials  Před 6 lety

      Hi,
      this means, your formula is not solvable. Doesn't matter which values you set for your variables, it will always be false

    • @alialmin6475
      @alialmin6475 Před 6 lety

      The Morpheus Tutorials i wrote the same code as you but i don’t understand germany

    • @TheMorpheusTutorials
      @TheMorpheusTutorials  Před 6 lety

      yea, I figured that out ;)
      it can be a pretty small mistake, are you sure, everything is absolutely correct?
      I'm not sure, but maybe I put the code on github, too.

    • @alialmin6475
      @alialmin6475 Před 6 lety

      Ok i’ll check thank you for your reply and can you send me the link to see the code directly

    • @TheMorpheusTutorials
      @TheMorpheusTutorials  Před 6 lety

      ah, I didnt upload it. Sorry.. You have to check it via the video

  • @MarsMasterLP
    @MarsMasterLP Před 8 lety

    habe noch nicht ganz verstanden ob der DPLL Algorithmus die KNF oder DNF verwendet ^^

  • @peterwacker9297
    @peterwacker9297 Před 8 lety

    Schade eigentlich das es keine exe datei geworden ist, wäre aber wohl viel zu lang😕

    • @TheMorpheusTutorials
      @TheMorpheusTutorials  Před 8 lety

      +Peter Wacker ja, man müsste noch die Kodierung bei der Eingabe regeln, das parsen, Ausgabe erstellen, eventuell sogar grafisch, aber das hat ja alles nichts mit dem Thema zu tun ;)
      Dürft ihr jetzt machen =)

    • @peterwacker9297
      @peterwacker9297 Před 8 lety

      The Morpheus wenn wir es schaffen...

    • @TheMorpheusTutorials
      @TheMorpheusTutorials  Před 8 lety

      +Peter Wacker klar