Chat Mega Challenge: There are roughly 43 quintillion valid states for a 3x3x3 Rubik's Cube. What is the largest subset of valid, unsolved states that can be solved without passing through any intermediate state that is also part of that subset, using only the basic twelve moves (F, B, U, D, L, R, F', B', U', D', L', R')?
Lower bound: the largest of the sets of configurations whose shortest path to the identity has i moves, where 0 <= i <= 26
I'm confused, cube20.org/qtm says there is known 1 configuration requiring 26 moves and only 2 requiring 25 moves, but doesn't applying each generator to the configuration at distance 26 give you 12 such distance 25 configs?
I have this task basically
In this task you'll try to distinguish the meaning of words within sentences. To be more precise,
you'll try to determine whether the sentence you're looking at talks about mice, the rodents, or mice, the input devices used to control a computer.
I'm thinking ab...
@user202729 > The positions of the cube can be separated by a concept called permutation parity into even and odd positions. Every quarter turn from an odd position yields and even position, and vice versa, so any move sequence in the quarter-turn metric ping-pongs between even and odd positions.
Every distance 26 state must be an even permutation, so every move from it must be an odd permutation, and therefore of distance 25
An H tree is a fractal tree structure that starts with a line. In each iteration, T branches are added to all endpoints. In this challenge, you have to create an ASCII representation of every second H tree level.
The first level simply contains three hyphen-minus characters:
---
The next leve...
Introduction
This challenge will see how simple NLP libraries of different languages have grown.
Challenge
This is code-golf so the shortest answer wins.
Given a sentence, your program should parse it with any Natural language processing library and get the subject, predicate, and object of t...
Challenge idea (for feedback): Choose an encoding and implement encoder and decoder for string←→nothing-array, where nothing-array is an array recursively consisting of only nothing-arrays and/or empty strings.
@Adám You could counter this a bit by measuring multiple maps of the source, such as all rotations/prefixes/substrings/permutations or whatever. It would still be vulnerable but people would need to spend bytes on that.
I have a suggestion for a rule that should take into effect: Should questions that would require participants to produce potentially dangerous or malicious programs (intentionally or unintentionally) be automatically disallowed? I understand that it's not very difficult to find a virus to send to...
What about a continually changing scoring, eg. measure of all the encodings of all the submissions? That way if someone tries to special-case stuff another answer could come and change its score.
Fully Modular C: Grading
code-golf c parsing
You are a Computer Science professor teaching the C programming language. One principle you seek to impart to the students is modularity. Unfortunately, past classes have tended not to get the message, submitting assignments with the entire program i...
How to
Given an integer n start with n ones (i.e. 4 -> 1 1 1 1). Then sum up the
last n numbers, and repeat.
For n = 4 this looks like this:
Start with 1 1 1 1, sum up the last 4 numbers resulting in 1 1 1 1 4, then
sum up the last 4 numbers resulting in 1 1 1 1 4 7, then sum up the last 4 n...
would be very nice to have because I have functions like func File.init(path: String, options: Set<FileOptions>)
so wuld be much easier to do File(path: "...", options: { .read, .write }) versus let options = Set(); options.append(.read); options.append(.write); File(path: "...", options: options)
One thing I do think is no optimal with the math notation is that {a,a,a,a} = {a}, so even though it might seem that a set contains something multiple times, a set is actually only characterized by a function that determines whether something is or is not part of it.
@flawr I was thinking about this and what I like about this is that it could allow user-define classes to have sequence literals. For that I was thinking along the lines of <Set>[1, 2, 3] but that syntax looks weird :P
yeah i think flawrs prefix suggestion is the best choice. I had hoped for just overloading [a,b,c] to be possible, but it doesn't make much sense having implicit runtime conversion from [1,2,3] to a set
The 19th Birthday will probably be celebrated :) But by that time (probably) everyone here will have long been inactive (hmm did I get the tense right ugh...?)