Trending

#PICAT

Latest posts tagged with #PICAT on Bluesky

Latest Top
Trending

Posts tagged #PICAT

Post image

PICAT/ASVAB VERIFICATION TEST Questions and Answers. GRADED A+
#PICAT #ASVAB #picatasvab #asvab2026 #picatquestionsandanswers #picatquestionsandanswers #picat2026

www.stuvia.com/user/studypa...

www.stuvia.com/doc/3556245/...

0 0 0 0
Post image

PICAT ASVAB VERIFICATION TEST PRACTICE. LATEST UPDATED VERSION
#PICATASVAB #ASVAB #PICAT #picatverification #asvabverification

www.stuvia.com/doc/9224805/...

1 1 0 0
Preview
GitHub - hakank/fzn_picat_sat Contribute to hakank/fzn_picat_sat development by creating an account on GitHub.

Here's the GitHub repo of the source code of the #Picat SAT FlatZinc solver fzn_picat_sat used in the MiniZinc Challenge 2025: github.com/hakank/fzn_p... .

For the result of the #MiniZinc Challenge 2025: www.minizinc.org/challenge/20... . (As mentioned earlier, the Picat SAT solver got two Silver.)

0 0 0 0
Preview
Picat: Examples of the new bv module in v3.9 · hakank/hakank@ca4a0af

#Picat version 3.9 has been released: picat-lang.org
Updates: picat-lang.org/updates.txt

It contains improvements of the SAT solver and - which is really cool - a bit vector constraint module which makes it possible to use arbitrary sized domains (> 2**56) in constraint models.

1/3

1 0 1 0

1/ Let's start with a recent one: in #Prolog (and #Picat), almost all data besides primitives are unevaluated terms, meaning they can be matched on the components:

```
?- A = [(1 + 2 + 4), (3 + 4)], member(Y+X, A), Z is Y.
X = 4,
Y = 1+2,
Z = 3
```

Note Y is NOT 3, it's still the term `1+2`

14 0 1 0
Preview
A Puzzle That Will Test Your Thinking Pocket Full of Change, But No Change to Give?

Here's my (new) Litmus test of LLMs: The No change problem (from medium.com/puzzle-spher... )

#Picat program: www.hakank.org/picat/no_cha... showing two constraint approaches (and a brute force variant).

LLMs might get one of the two solutions, but often only after a lot of corrections.

2 0 1 0

#Picat version 3.8 is available: picat-lang.org/download.html

picat-lang.org/download.html
Updates: picat-lang.org/updates.txt
E.g. new if/then/else syntax variant, improved error handling, debug flag (-d) at command line, new between/4, and some other bug fixes.

0 0 0 0
Picat

#Picat version 3.8.b-4 is available: picat-lang.org/download.html

Updates: picat-lang.org/updates.txt (e.g. new if/then/else syntax variant, improved error handling, debug flag (-d) at command line, new between/4, and some other bug fixes).

1 0 1 0
Advent of Code 2024

#AdventOfCode (adventofcode.com) Day 25

#Picat: hakank.org/advent-of-co...

And thanks for all these wonderful (and - at least for me - sometimes too hard) puzzles!

1 0 0 0
http://hakank.org/advent-of-code-2024/24_part1.pi /* Advent of Code 2024 in Picat. Problem 24 https://adventofcode.com/2024/day/24 Part 1 Thanks to DestyNova for hinting on a very annoying bug in part 1. This program was created by ...

#AdventOfCode Day 24: Here's two different approaches for solving Part 1 in #Picat using CP solver:
- hakank.org/advent-of-co...
- hakank.org/advent-of-co...

part1b.pi was the one I used to get a point since part1.pi contained an annoying bug (fixed via DestyNova's hint).

1 0 1 0
http://www.hakank.org/advent-of-code-2024/23.pi /* Advent of Code 2024 in Picat. Problem 23 https://adventofcode.com/2024/day/23 A f part 1 This program was created by Hakan Kjellerstrand, hakank@gmail.com See also my Picat page: h...

#Picat: www.hakank.org/advent-of-co...
(reusing code I happened to write years ago)

0 0 0 0
http://www.hakank.org/advent-of-code-2024/22.pi /* Advent of Code 2024 in Picat. Problem 22 https://adventofcode.com/2024/day/22 This program was created by Hakan Kjellerstrand, hakank@gmail.com See also my Picat page: http://www.haka...

#Picat: www.hakank.org/advent-of-co...
I might be trying to get part 2 to be faster.

0 0 0 0
http://www.hakank.org/advent-of-code-2024/19.pi /* Advent of Code 2024 in Picat. Problem 19 https://adventofcode.com/2024/day/19 This program was created by Hakan Kjellerstrand, hakank@gmail.com See also my Picat page: http://www.haka...

#Picat: www.hakank.org/advent-of-co...

0 0 1 0
http://www.hakank.org/advent-of-code-2024/6_part2.pi /* Advent of Code 2024 in Picat. Problem 6 https://adventofcode.com/2024/day/6 Only Part 2 This program was created by Hakan Kjellerstrand, hakank@gmail.com See also my Picat page: ht...

#Picat: www.hakank.org/advent-of-co... (neither fast nor pretty but I got the star at last )

0 0 0 0
http://www.hakank.org/advent-of-code-2024/18.pi /* Advent of Code 2024 in Picat. Problem 18 https://adventofcode.com/2024/day/18 Here are some different versions. Part1: - go/0: Using planner, 2.86s - go1_dijkstra/0: Using dijkst...

#Picat: www.hakank.org/advent-of-co... with some slow and faster versions

0 0 0 0
http://hakank.org/advent-of-code-2024/14.pi /* Advent of Code 2024 in Picat. Problem 14 https://adventofcode.com/2024/day/14 This program was created by Hakan Kjellerstrand, hakank@gmail.com See also my Picat page: http://www.haka...

#Picat: hakank.org/advent-of-co...
Part 2 was solved manually, and I have now fixed the detector.

0 0 1 0
http://hakank.org/advent-of-code-2024/13_dcg.pi /* Advent of Code 2024 in Picat. Problem 13 https://adventofcode.com/2024/day/13 This variant parses the entries using DCGs This program was created by Hakan Kjellerstrand, hakank@gma...

Probably the last variant for today: #Picat with input parsing using DCG (Definite Clause Grammar): hakank.org/advent-of-co...

0 0 0 0
http://hakank.org/advent-of-code-2024/13_regex.pi /* Advent of Code 2024 in Picat. Problem 13 https://adventofcode.com/2024/day/13 This variant parses the entries using regex This program was created by Hakan Kjellerstrand, hakank@...

Here's a #Picat version using my regex library to parse the input file: hakank.org/advent-of-co... (and combined that with list comprehension). About the same time as the original Picat program.

0 0 1 0
http://hakank.org/advent-of-code-2024/13.pi /* Advent of Code 2024 in Picat. Problem 13 https://adventofcode.com/2024/day/13 This program was created by Hakan Kjellerstrand, hakank@gmail.com See also my Picat page: http://www.haka...

#Picat: hakank.org/advent-of-co...
Nice with a built-in CP solver.

0 0 1 0
http://hakank.org/advent-of-code-2024/11.pi /* Advent of Code 2024 in Picat. Problem 11 https://adventofcode.com/2024/day/11 This program was created by Hakan Kjellerstrand, hakank@gmail.com See also my Picat page: http://www.haka...

#Picat: hakank.org/advent-of-co... (part 1 and part 2)
Brute force for part 1: hakank.org/advent-of-co...

0 0 0 0
http://www.hakank.org/advent-of-code-2024/10.pi /* Advent of Code 2024 in Picat. Problem 10 https://adventofcode.com/2024/day/10 This program was created by Hakan Kjellerstrand, hakank@gmail.com See also my Picat page: http://www.haka...

#Picat: www.hakank.org/advent-of-co...

0 0 0 0
http://hakank.org/advent-of-code-2024/9.pi /* Advent of Code 2024 in Picat. Problem 9 https://adventofcode.com/2024/day/9 This program was created by Hakan Kjellerstrand, hakank@gmail.com See also my Picat page: http://www.hakank...

#Picat: hakank.org/advent-of-co...

Way too slow and dirty but I leave it for now.

0 0 0 0
http://hakank.org/advent-of-code-2024/8.pi /* Advent of Code 2024 in Picat. Problem 8 https://adventofcode.com/2024/day/8 This program was created by Hakan Kjellerstrand, hakank@gmail.com See also my Picat page: http://www.hakank...

#Picat: hakank.org/advent-of-co...

0 0 0 0
http://hakank.org/advent-of-code-2024/7.pi /* Advent of Code 2024 in Picat. Problem 7 https://adventofcode.com/2024/day/7 This program was created by Hakan Kjellerstrand, hakank@gmail.com See also my Picat page: http://www.hakank...

#Picat: hakank.org/advent-of-co...

0 0 1 0
http://www.hakank.org/advent-of-code-2024/5.pi /* Advent of Code 2024 in Picat. Problem 5 https://adventofcode.com/2024/day/5 This program was created by Hakan Kjellerstrand, hakank@gmail.com See also my Picat page: http://www.hakank...

#Picat: www.hakank.org/advent-of-co...

0 0 0 0
Preview
GitHub - hakank/picat_regex: regex module for Picat regex module for Picat. Contribute to hakank/picat_regex development by creating an account on GitHub.

#Picat: www.hakank.org/advent-of-co...
(using my regex module github.com/hakank/picat... )

0 0 1 0

#Picat solution: www.hakank.org/advent-of-co...

0 0 1 0

The #Picat program: hakank.org/advent-of-co...

0 0 1 0

in #Picat
part1 =>
[A,B] = [Line.map(to_int): Line in read_file_lines("1.txt").map(split)].transpose.map(sort),
[abs(A[I]-B[I]) : I in 1..A.len].sum.println.

0 0 1 0
Preview
GitHub - hakank/picat_regex: regex module for Picat regex module for Picat. Contribute to hakank/picat_regex development by creating an account on GitHub.

Just updated my GitHub repo for #Picat regex support: github.com/hakank/picat...

0 0 0 0