Hacker News new | ask | show | jobs
by YeGoblynQueenne 591 days ago
Mmouais, quesque j'ai dit? C'est pas comme ça qu' on represente les matrices en Prolog. Pas comme une liste mais comme un terme qu' on utilise comme un tableau 2d (array) en row-major ordre. Sinon c'est le bordel.

J'ai une implementation la dedans:

https://github.com/stassa/ijclr_2024_experiments/tree/master...

Mais c'est un peut partout, dans deux ou trois fichiers, pas facile a trouver.

En tout cas, c'est pas une bonne exercise pour Prolog, une matrice. J'aurais preferrer une balanced heap, par example.

Et avec des transposees en plus. Non mais il est debile le prof?

Apologies for the lack of proper punctuation :)

1 comments

haha wasn't expecting the french response. I wish I spoke it that well. But yeah, the university I was in (usthb) is notorious (in algeria) for having the most difficult exams so stuff like this is expected
Ah, Algeria! Well, I'm Greek but I never miss a chance to try my French on :)