« first day (1642 days earlier)      last day (998 days later) » 

1:57 AM
Was editing APL Wiki earlier today and now I'm getting an ERR_CONNECTION_REFUSED. @RikedyP?
 
2:08 AM
@Marshall Seems down for me too.
 
 
8 hours later…
9:40 AM
@Marshall Seems up now.
 
9:50 AM
@Marshall ¯\(⍨)/¯
 
10:03 AM
hello, I was inspired by a person from my server making pride logos for vscode, so I made a few dyalog pride logos too
i thought some of you might enjoy it
an archive with svg's, etc...: b.catgirlsare.sexy/imV_2dwD.7z
 
 
8 hours later…
5:57 PM
@KamilaSzewczyk :-) Forwarded to our internal media team.
 
CC0, if you want to use it for anything.
 
6:13 PM
Hi folks :) Fully expected a discussion of Rodrigo's problem #41 in APL in here, smh :D
(To be fair I bruteforced it in another language)
 
@MartinJaniczek #41?
 
6:43 PM
@MartinJaniczek Oh, I wasn't aware of that post. Thanks! But it is such a simple problem!
 
I wasn't able to get to the optimal solution in my head (was 2 off), so I went to write a solver :shrug:
 
@KamilaSzewczyk Do you own that domain? How'd you get it?
 
@MartinJaniczek (⊢+.+⌊/)-3×⌊/ ?
@user .sexy is a normal TLD, but that's a bit off-topic here.
 
You're right, I'll ask elsewhere (could you move my message too?)
 
@Adám I don't know how to interpret that
 
6:58 PM
@MartinJaniczek (⊢+.+⌊/) is the sum of the fastest person's time added to each time, but then we've counted the smallest time 3 times too much; 2 times because they don't need to accompany themselves, and 1 because they don't need to come back after accompanying the last friend, so -3×⌊/ subtracts 3 times the smallest element.
(⊢+.+⌊/) is maybe clearer as (+/⊢+⌊/)
 
Ah, I just had to parenthesize your expression before applying it to the array 1 2 5 10. Gotcha. No, that algorithm isn't optimal. It's the one I arrived at in my head, yeah!
 
@MartinJaniczek OK, +/+⌊/ׯ3+≢ then.
 
It gives the same answer as the previous one though.
(Or maybe I misunderstood and you wanted to just fix the need for parenthesization?)
 
@MartinJaniczek I don't see any faster way than the fastest person being the companion every time, so they can run back as fast as possible.
 
That's why it's a nice puzzle!
 
7:07 PM
@MartinJaniczek Yes, same result, but less computation.
 
7:20 PM
Just to be explicit (with spoiler prevention), the optimal solution AFAIK is 3-⍨+/2/⍳4
I think I could describe an algorithm to get at it programmatically (that isn't a bruteforce search) but I don't think coding that up is worth it when bruteforce works so well for input this small :)
(the above is with ⎕IO 1, I should have obfuscated it differently)
 
@MartinJaniczek How can the solution be constant?
 
For the particular input of 1 2 5 10
 
7:35 PM
@MartinJaniczek I don't get it. For every 2-way trip (because the torch needs to come back), effectively only one person crosses, because one of the 2 has to bring the torch back, so the total time is the sum of all crossing times. Except the last trip, where effectively the last 2 people are crossing together and nobody needs to come back. The return-leg is wasted, so the fastest person should do it, adding n-3 fastest-person return-legs. Am I reasoning wrong here?
Ah, wait, two slow persons should cross together!
 
You're on a correct track! (And I have the optimal non-bruteforce Python solver written for arbitrary input... :facepalm:)
 
7:58 PM
Gotta run so I'll just post it here for after you solve it :)
 
 
3 hours later…
11:09 PM
(Bridge and Torch has a closed-form solution as shown at the end of this paper (which works for arbitrary number of people).)
 
lol, aside from being an interesting paper, I like how they have to declare they don't have a conflict of interest, as if they could be paid by a torch company to promote nonoptimal solutions to increase profit
 

« first day (1642 days earlier)      last day (998 days later) »