Puzzles/JQuilt

From J Wiki
Jump to navigation Jump to search
   ??????????????   NB. j quilt
+----------+----------+----------+----------+----------+----------+
|+--------+|+--------+|+--------+|+--------+|+--------+|+--------+|
||+------+|||+------+|||+------+|||+------+|||+------+|||+------+||
|||+----+|||||+----+|||||+----+|||||+----+|||||+----+|||||+----+|||
||||+--+|||||||+--+|||||||+--+|||||||+--+|||||||+--+|||||||+--+||||
|||||++|||||||||++|||||||||++|||||||||++|||||||||++|||||||||++|||||
|||||++|||||||||++|||||||||++|||||||||++|||||||||++|||||||||++|||||
||||+--+|||||||+--+|||||||+--+|||||||+--+|||||||+--+|||||||+--+||||
|||+----+|||||+----+|||||+----+|||||+----+|||||+----+|||||+----+|||
||+------+|||+------+|||+------+|||+------+|||+------+|||+------+||
|+--------+|+--------+|+--------+|+--------+|+--------+|+--------+|
+----------+----------+----------+----------+----------+----------+
|+--------+|+--------+|+--------+|+--------+|+--------+|+--------+|
||+------+|||+------+|||+------+|||+------+|||+------+|||+------+||
|||+----+|||||+----+|||||+----+|||||+----+|||||+----+|||||+----+|||
||||+--+|||||||+--+|||||||+--+|||||||+--+|||||||+--+|||||||+--+||||
|||||++|||||||||++|||||||||++|||||||||++|||||||||++|||||||||++|||||
|||||++|||||||||++|||||||||++|||||||||++|||||||||++|||||||||++|||||
||||+--+|||||||+--+|||||||+--+|||||||+--+|||||||+--+|||||||+--+||||
|||+----+|||||+----+|||||+----+|||||+----+|||||+----+|||||+----+|||
||+------+|||+------+|||+------+|||+------+|||+------+|||+------+||
|+--------+|+--------+|+--------+|+--------+|+--------+|+--------+|
+----------+----------+----------+----------+----------+----------+
|+--------+|+--------+|+--------+|+--------+|+--------+|+--------+|
||+------+|||+------+|||+------+|||+------+|||+------+|||+------+||
|||+----+|||||+----+|||||+----+|||||+----+|||||+----+|||||+----+|||
||||+--+|||||||+--+|||||||+--+|||||||+--+|||||||+--+|||||||+--+||||
|||||++|||||||||++|||||||||++|||||||||++|||||||||++|||||||||++|||||
|||||++|||||||||++|||||||||++|||||||||++|||||||||++|||||||||++|||||
||||+--+|||||||+--+|||||||+--+|||||||+--+|||||||+--+|||||||+--+||||
|||+----+|||||+----+|||||+----+|||||+----+|||||+----+|||||+----+|||
||+------+|||+------+|||+------+|||+------+|||+------+|||+------+||
|+--------+|+--------+|+--------+|+--------+|+--------+|+--------+|
+----------+----------+----------+----------+----------+----------+









Spoiler Alert!







Solutions

Please submit your solutions here.


 3 6$<^:6]0 0$0 NB. or a=:":3 6$<^:6]0 0$0 for a text quilt

-- Ewart Shaw <<DateTime(2005-11-01T14:04:10Z)>>

This solution by Ewart Shaw was posted in less than 20 min {OK} after the puzzle publication. It has the same character count as mine.

-- Oleg Kobchenko <<DateTime(2005-11-01T14:25:39Z)>>


 3 6$<^:6 i.0 0 NB. same character count but lower word count

-- Roger Hui <<DateTime(2005-11-01T15:37:06)>>


Raul Miller's runner-up 3 6$<^:5 a: compared with the required result shows property of J formatter to yield a zero height box for shapes with zero in position other than _1, raison d'etre of j quilt ascii art as a new artform commemorating this "recent" discovery. Cf.

   <i.1 0
++
||
++
   <i.0 1
+-+
+-+
   <i.0 0
++
++

There is still at least one not shortest but interesting option.

-- Oleg Kobchenko <<DateTime(2005-11-01T22:02:02Z)>>


<"2 L:0^:6 i.3 6 0 0 is not shortest... -- Raul Miller <<DateTime(2005-11-01T23:03:08Z)>>

This one deserves credit for creative use of rare primitives. Meanwhile, there is a shorter similar one.-- Oleg Kobchenko <<DateTime(2005-11-02T00:05:05Z)>>

Puzzle format discussion

How about combining the problem statement and solution pages for this and the JQuilt2 puzzles? It'd easy to arrange things so that the spoiler solutions are not inadvertently seen, and it'd follow the format for all the other puzzles. -- Roger Hui <<DateTime(2005-11-01T23:06:31Z)>>

I understand that multi-exits per puzzle are breaking the Puzzles page uniformity, so all problem statements for a puzzle (the sub-puzzles) might be combined on one page and all solutions on the other grouped by sub-puzzle. It will require subheadings and intra-page anchors, which I still look forward to master. If that's what you mean, it's a great idea. -- Oleg Kobchenko <<DateTime(2005-11-01T23:33:21Z)>>

I meant a page Puzzles/JQuilt containing the problem statement and solutions for one puzzle, and another page Puzzles/JQuilt2 containing the problem statement and solutions for the other puzzle. That is the format for all the other puzzles so far. -- Roger Hui <<DateTime(2005-11-01T23:37:25Z)>>

That's good too. I will do that. -- Oleg Kobchenko <<DateTime(2005-11-02T00:00:07Z)>>