Solutions to "Just KNIME It!" Challenge 34

This thread is for posting solutions to “Just KNIME It!” Challenge 34. This week we learn how to automatically scramble words in a sentence :robot: :brain:

Here is the challenge: Just KNIME It!

Feel free to link your solution from KNIME Hub as well!

And as always, if you have an idea for a challenge we’d love to hear it! :heart_eyes: Tell us all about it here.

Season 1 of “Just KNIME It!” is slowly coming to an end: we’ll wrap up on October 26!

1 Like

Hi friends,

here is my solution:

The punctuation should not be relevant, but I made it a little pretty.

Best Regards
Andrew

4 Likes

Hi fellow KNIMErs,

I’d like to share my solution as well. 7 processing nodes, true randomization, no loop :upside_down_face:


Cheers,
Lars

3 Likes

My Submission - shuffle the dice

5 Likes

I love how varied these solutions are already!

1 Like

Here’s my solution. Pretty crude, but does provide some randomization.

Output

2 Likes

This is my solution for Challenge 34

I have 4 different solutions for the challenge (from Top to Bottom)
(1) Simple Word Scramble - Only 2 Nodes
(2) Simple Word Scramble (Actual Solution) - 5 Nodes
(3) Word Scramble with True Randomization using Loops - 9 Nodes
(4) Word Scramble “Bonus” Solution with True Randomization, without using Loops - 9 Nodes

Sample Sentence
image

Word Scramble results per solutions
(1)
image

(2)
image

(3)
image

(4)
image

4 Likes

Correction: In Pivoting Node, I used “Set” Aggregation, not Unique Concat

2 Likes

Hi,
here my solution for this weeks challenge: jKi-34 – KNIME Hub

2 Likes

Yoda speaks like this :slight_smile:

4 Likes

Hi all,

Here are my solutions in KNIME Hub:

For loop-free randomization, I used unpivoting, shuffle and groupby nodes to bypass the need for loops.

Sample text:
image

Scrambled text:

Kind regards,

3 Likes

Hello Knimers,

here is my solution:

I left the user the option to set the seed for shuffling. For a true random shuffling, uncheck the box “Seed” in the random number assigner.

Have a nice day,
Raffaello

1 Like

As always on Tuesday’s, here’s our solution to challenge 34! :brain: :robot:

As you can see in our solution workflow, there are three different approaches. The first one is quite a simple solution, but the permutations are not exactly random. The other two solutions introduce true randomization, one using loops, the other doesn’t.
It’s great to see all your different approaches for this task :star_struck: Kudos!
See you tomorrow for a new challenge! :blush:

1 Like

Hello KNIMErs,

Here is my solution to #justknimeit-34 :

KNIME Hub > gonhaddock > Spaces > Just_KNIME_It > Just KNIME It _ Challenge 034

Randomized using ‘Random Number Assigner’ node:

BR

3 Likes