Calculate the Langelier Saturation Index if the local pool!
Anyone who has operated a commercial swimming pool will know that maintaining a good Saturation Index (SI) is important. Water will dissolve anything it touches until it becomes saturated - when this happens the excess solutes will prec...
@PhiNotPi For the Bloom filter challenge, I like the idea of explicitly specifying two hash functions, but allowing people to use their own if they prefer.
@NathanMerrill Make it so all the cars have a preset place they're trying to get to. When all the cars make it to where they want to be, the number of ticks that have passed is the score
You'd have to find a way to deal with strategies optimized for the specific cars though
@PhiNotPi Is it golf? If so I like the idea of specifying hashes that are not suited to golfing, so the best answers will be ones that choose a more golfable hash
@trichoplax If the hash functions are (practically) independent & uniform, then the false-positive rate is easy to calculate. I would just have to place some requirement on "independent and uniform."
@PhiNotPi Do you want to allow someone to choose 2 hash functions that are neither independent nor uniform, but happen to give a probability of false positive less than your cap because they fit together well?
@PhiNotPi I like the opportunity this leaves open for golfers, but it depends on being able to find a way to measure the probability across all possibilities
@trichoplax Since there's two hash functions, and 32 bits, there's 528 possible hash results (compared to 94 possible characters). I could put a limit on the number of hash collisions.
Kind of disappointed there are so few categories in the best of PPCG 2015. Personally I wish there were a "Rookie of the Year" award. There've been some amazing newcomers this year.
Expand the numbers
You may remember in first or second grade using expanded form to learn about place value of numbers. It's easier to explain with an example, so consider the number 123. In expanded form it is represented as 100 + 20 + 3, which helps a young mind visualize place value. It is re...
Do-nothing Polyglot
Challenge
This challenge requires you to write a polyglot which contains as many types of comments possible.
The comment must say This is a polyglot comment.
The program must do nothing at all.
Besides comments, your code may contain no-ops from the language(s) you are usi...
@NinjaBearMonkey good question! looking forward to answering it!
You may remember in first or second grade using expanded form to learn about place value of numbers. It's easier to explain with an example, so consider the number 123. In expanded form it is represented as 100 + 20 + 3, which helps a young mind visualize place value. It is reminiscent of how you...
Here's my logic: Let's say that after adding some number of character in, a false positive is generated when testing for some character X. This means that the two bits X is assigned were previously flipped by two other characters, which could be Y and Z. Then, a bloom filter with just the characters Y and Z in it would still give a false positive for X.
Haha. Month-long isn't a bad idea, actually. Or we could still wait the whole year; if people forget about it then the "ohhh yeah that thing!" factor may play a part. :P
PPCG is #5, following Audio-Video Production, Writers, Homebrewing (Beer, Wine, etc.), and Board and Card Games, which has been in beta for 1907 days compared to our 1807 days.
Maybe we're just not a good fit for the network or something. We're excellent in all categories except for questions which we are Ok in. Sites have graduated with worse (far worse) stats
I would say [ˈmɑɹtɪn 'bjʊtnɚ] in English and [ˈmaʁtin ˈbʏtn̩ɐ] in German and I just realized how I misunderstood the conversation but I spent too much time cobbling together this IPA not to hit enter on this line, hi.
Like if I give you an adjacency graph for the faces of the cube, you could partition the plane any number of ways so long as the parts have four sides, there are six of them, and they're arranged appropriately.
@RikerW Please don't post huge, off topic, animated GIFs. The two I deleted alone weighed 10 MB. Some of us have slow internet connections and pay per byte.
Inspired by this conversation in chat.
Your goal in this challenge is to emulate a ninja and count how many deaths he has left.
Specs
You ninja starts out with 9 deaths left. He also gets an integral starting health as an input.
Then, he takes as input a list of events in his life that alter ...
Turing's truth tables
code-golf
Alan Turing - Wikipedia
Truth tables are very important in logic. They are a very useful tool to help you visualize how a function works. In this challenge, you are going to make a program/function that generates a truth table.
Ops that you must support:
&: ...
Smooth vs. Chunky vs. Broken Squiggles
Based on Chunky vs. Smooth Strings.
Squiggles /\_/\/\__/\/\/\/\_/\_/\ are fun to make on a keyboard when you are really bored. But not all squiggles are created equal. Some squiggles are smooth, like \___/, and some are chunky, like /\/\/\/\. Others are...
Inspired by this conversation in chat.
Your goal in this challenge is to emulate a ninja and count how many deaths he has left.
Specs
You ninja starts out with 9 deaths left. He also gets an integral starting health as an input.
Then, he takes as input a list of events in his life that alter ...