u/KeineAhnungBruder001

Naive question: What Data Structure to express different layers of relationships between Objects?

Hello guys,

I wanted to ask naively, what the ideal data structure would be for expressing different layers of relationships between Objects.

For example in modern Sudoku the game has a 9x9 number grid composed of nine 3x3 sub-grids (which I call region). In each row, column and region each number between one and nine can only appear once. The goal is to find missing numbers in this number grid without violating the aforementioned rule.

One way to do it, would be to make 9x9 byte-array and express the relationship between numbers through methods checking if the rule is violated or not by checking if any row, column or region doesn't contain a value between one and ten.

I also thought on using a Graph to express the relationship between numbers in rows and columns, though I don't know how to express the relationship between numbers inside of a region.

Maybe even a multiple Objects like Board, Row, Column, Region but then I have redundant data.

Another problem I encounter with aforementioned implementations is, that if you introduce more relationships f. e. in the game of killer sudoku, where there are more rules are added f. e. by also introducing cages in which the numbers must add up to a target number, you need to implement that relationship logic tediously.

Am I overcomplicating things?

reddit.com
u/KeineAhnungBruder001 — 5 days ago

What would you want from a C-Tutorial?

Hello guys,

i plan on doing a C-video-tutorial to help a friend go through his uni programming class (and to learn the language myself more and get experience on making tutorials). I myself am still in the process on learning C, though I have some solid programming experience in Java.

I've already learned the basics of C like how a C-file is typically compiled, variables (and their scope), basic datatypes, control flow/structure (sequence/block, jump like goto/continue/break/return, conditional branches and loops), functions, arrays, string (or char arrays), basic memory management (stack/heap and common problems like memory leak, dangling pointer, etc.), pointer, structs and file i/o handling. I believe his class doesn't go through more than that but if I've missed any other important topic which can be learned on top of the topics already mentioned, please tell me.

My overall goal would be to teach him the topics mentioned above and help him make design decisions on his own.

The thing is, he is completely new to programming (he is not studying computer science, though he knows some math) and I'm kind of in a dilemma between explaining the concept too simple by cutting away details and going in with too many details (I cannot clearly remember the exact struggles I had when I first learned Java).

I thought about explaining it alongside developing a small project like a text-based RPG where I start of simple with fixed dialouge, branch of to dialogue options (control flow), inventory (f. e. done with arrays), trading items with a npc (explaining pointers and memory allocation) etc.. Something which is more captivating than doing a boring calculator but still simple enough to explain key concepts and give room for ideas he can implement himself.

When you first started with C (maybe adressed to someone whose first language was C) what did help you understand it?

Maybe to some people who are still learning C, what obstacles do you encounter when trying to learn the language?

In what way do you believe I should teach or structure the topic, so that I don't cut away important information but still get my point across straight?

TL;DR: I want to make a C-video-tutorial to help my friend, who is new to programming, pass his uni programming class and need help finding out the best way to help him.

reddit.com
u/KeineAhnungBruder001 — 15 days ago

Welche Animes auf ADN sind sehenswert?

Hallo zusammen,

habe wegen einem anderen Anime ein ADN-Abo abgeschlossen, welches in einer Woche ausläuft. Hat wer Ideen was ich noch auf ADN gucken kann?

reddit.com
u/KeineAhnungBruder001 — 1 month ago

Wie heißt das, wonach ich suche? Mangas vertikal schräg aufstellen.

Bücherregal von oben betrachtet. Mangas sollen schräg vertikal aufgestellt werden. Das Cover darf nicht verdeckt sein.

Hallo zusammen,

ich suche für meine Mangasammlung eine Art Bücherständer, wo man die Manga vertikal schräg aufstellen lassen kann, ohne dass ich das Cover verdecke oder der Manga sich von alleine öffnet.

Aktuell lehne ich einen Manga an der HÖSSLA Buchstütze von IKEA. Ich möchte den Manga aber nicht dazwischen klemmen und dass er da geöffnet steht, gefällt mir wiederum auch nicht.

Ziel soll es sein, dass man die Cover der Mangas von vorne teils oder bestenfalls ganz sehen kann und man bestenfalls noch Platz spart, indem die Mangas schräg angeordnet werden können.

Eine Zeichnung, wie ich mir das grob vorstelle habe ich angefügt.

Weiß jemand von euch eventuell, wonach ich suche?

reddit.com
u/KeineAhnungBruder001 — 2 months ago

Manga Lizenzhandel Verlag

Hey,

naive Frage, aber weiß wer wie eigentlich ein Lizenzverkauf aussieht? Meistens bekommt man das ja in der Öffentlichkeit nicht mit, aber wie läuft sowas eigentlich ab? Gehen die deutschen Verläge zu den japanischen Verlägen und kauft die Lizenzrechte ab oder gehen die japanischen Verläge auf die deutschen Verläge zu? Wie ermitteln die den Preis für die Lizenzen und ab wann sieht ein Verlag das als wirtschaftlich an? Woher wissen die Vertragspartner ob die Zielgruppe in Deutschland dafür groß genug ist?

reddit.com
u/KeineAhnungBruder001 — 3 months ago

Gibt es Anzeichen für Manga, welche OOP gehen?

Hallo,

wollte mal in die Runde fragen, ob es Anzeichen gibt für Manga, welche OOP (out of print => wird nicht mehr gedruckt) gehen oder vielleicht sogar eine Website dafür.

Für mich kam es bspw. ganz plötzlich, dass Mob Psycho 100 es nicht mehr gibt (keine Ahnung ob es OOP ist oder gerade einfach nur nicht erhältlich; Finde es jedenfalls nicht mehr auf Carlsen Website oder sonst wo).

reddit.com
u/KeineAhnungBruder001 — 3 months ago