https://wiki.haskell.org/api.php?action=feedcontributions&user=KamikazeJones&feedformat=atomHaskellWiki - User contributions [en]2023-12-09T04:36:26ZUser contributionsMediaWiki 1.35.5https://wiki.haskell.org/index.php?title=Talk:Euler_problems&diff=58373Talk:Euler problems2014-06-26T18:27:14Z<p>KamikazeJones: /* Why publish solutions on haskellwiki? */ new section</p>
<hr />
<div>I agree with hk that these pages are literally KILLING Project Euler. If you want a way to publish your OWN solutions in a SAFE manner, see an example [http://adn.cn/blog/article.asp?id=88 here]. That blooger RESPONSIBLY uses a md5 hash of the answers as the key to encrypt his own solutions (written in mathematica). I think sites such as that one are much more enlightening than what this is now. You claim that mindful problem solvers will not upset themselves by peeking at your pages, but in all seriousness, rarely are such problem solvers immune to giving in to frustration. However capable, they are only human. Given, once I solve a problem in a particular language, I'm usually curious how other languages cope with the problem, and I usually find the Euler forums (for each problem) sufficient to this end. I plead that this site be remodeled using proper encryption (the mentioned scheme is perfect) or simply remove this site and post your methods in the forums of Project Euler. <br />
<br />
-anon.<br />
<br />
----<br />
<br />
As one of the teammembers of Project Euler I must say that you are doing Project Euler not a great favour by maintaining this site.<br />
How is it possible that you are so blinded by your enthousiasm of a particular programming environment that you lose out of sight the true nature of Project Euler: problem solving, disregarding all differences of programming languages.<br />
As all problems are there, even the most recent ones, those responsible for this must be found among our 100%-ers.<br />
Please realise how much work of us you are spoiling with this work and stop spoling our work. Better still: remove it altogether from public domain.<br />
Threatening to consider any amendment as vandalism is really a gotspe.<br />
It's you that are vandalising our work.<br />
<br />
Hans Klein (aka hk) <br />
<br />
----<br />
quote:<br />
''Additionally, for convenience in checking solutions, a list of pairs giving the exact Euler answers is available''<br />
<br />
Cale, why are you doing these things just to annoy us? Don't you have better things to do than trying to kill project euler?<br />
--<br />
<br />
In addition I don't see the use of this checklist.<br />
Anyone that wants to check the correctness of his answer can do so at the Project Euler site.<br />
It seems more a deliberate attempt to kill Project Euler.<br />
Perhaps Gale should do some introspection about his true motives.<br />
<br />
[[User hk|hk]]<br />
----<br />
<br />
quote:<br />
''On the other hand, this problem space is perfect for illustrating the power of Haskell, and for providing excellent examples of how to "think in Haskell".'' <br />
<br />
The solutions to some of the harder problems are in C++, so that has nothing to do with the power of Haskell. Please remove the solutions from this page. If you want to show your Haskell solution please do so in the forum of a problem.<br />
<br />
Stijn aka henk263<br />
<br />
-----<br />
<br />
If you openly publish problems, people will be free to openly publish solutions to them. There's not a whole lot which can be done about it. This is the same issue as a game developer saying "please don't publish a walkthrough to our game". You can ask, but it's pretty much guaranteed that someone will inevitably do it.<br />
<br />
Moreover, it doesn't harm anyone's enjoyment of the game. The pages are clearly marked as containing spoilers, and those who don't want to see the spoilers can avoid them quite easily.<br />
<br />
[[User:CaleGibbard|CaleGibbard]] 18:58, 23 February 2008 (UTC)<br />
<br />
The solutions in C++ would indeed be better off replaced by Haskell code. This is, after all the Haskell wiki. However, removing the solutions altogether would be silly. (Not to mention ineffective, as they would remain in the page history.)<br />
<br />
If you want to have a contest with problems to which nobody can look up the solution, construct a list of problems which nobody has seen before and hold the contest all at once. Long term contests in which the problems have trivial (i.e. known) solutions won't hold up.<br />
<br />
[[User:CaleGibbard|CaleGibbard]] 19:08, 23 February 2008 (UTC)<br />
<br />
I think you misunderstand Project Euler.<br />
To my opninion it's not a contest. But by publishing worked out solutions you are spoiling the fun for those that love to solve problems.<br />
Of course not much can be done to such "look me being smart" people that haven't even to guts to design their own problems to write their programming tutorial. Moreover stealing other peoples solutions (problem 181) does not look very smart either.<br />
<br />
[[User: hk|hk]] <br />
<br />
Those who love to solve problems should have no problem with this site. They just won't read it. The only possible way one could have a complaint about published solutions to the problems is if one thought of the site as a contest by which people are being judged and compared. If the problems are meant only for personal use, there's no issue, since the only person one might cheat by looking at the solution is oneself.<br />
<br />
If one had already given up on finding the solution, being able to look at a solution is potentially educational as well.<br />
<br />
I should perhaps point out that I've not personally had any hand in constructing any of these solutions (though I did clean up the formatting on some of them not long ago), and haven't spent much time working on Project Euler myself either (the problems are not of a sort which I find interesting, there are not nearly enough universal quantifiers in them). I do, however, think that people who put useful things on this wiki should not have them arbitrarily damaged.<br />
<br />
[[User:CaleGibbard|CaleGibbard]] 20:07, 23 February 2008 (UTC)<br />
<br />
Quite a few of the recent C++ additions are just stolen from the problem's forum. I'm pretty sure that neither '''balakrishnan''' nor '''Daniel.is.fischer''' put anything here. <br />
<br />
[[User: henk263|henk263]] <br />
<br />
Cale<br />
All your arguments fail if you see that the one that put those Haskell (and C++)<br />
solutions here has even gone so far as to put the direct answers to the problems on this page http://www.haskell.org/haskellwiki/Euler_answers.<br />
This goes too far.<br />
I urgently request that that page and this one should be removed from this Haskell wiki. This has nothing to do with Haskell anymore.<br />
<br />
[[User: hk|hk]]<br />
<br />
I still don't see why you should care about the solutions being published. If particular solutions can be shown to violate people's copyright, then those should be removed. Everything on this wiki is meant to be published under the [[HaskellWiki:Copyrights|simple permissive license]]. Otherwise, I see no reason to remove anything.<br />
<br />
[[User:CaleGibbard|CaleGibbard]] 21:52, 23 February 2008 (UTC)<br />
<br />
For me, it spoils the fun of 'climbing up the ladder'. I don't get why this list of numbers belongs in an HASKELLwiki :S<br />
<br />
[[User: henk263|henk263]] <br />
<br />
If it would spoil the fun, don't look at it. What's your problem? If your value system is so messed up that you get more satisfaction out of seeing your progress bar go up faster than other people's progress bars than from actually solving the problems yourself, then I think you probably have some serious self-evaluation to do. Also, until then, I have a [http://www.progressquest.com/ video game] in which you might be interested<br />
<br />
[[User:CaleGibbard|CaleGibbard]] 22:04, 23 February 2008 (UTC)<br />
<br />
I guess I do see project euler partly as a contest. There's no need to get personal. I'm very sure that I'm not the only one who doesn't like the idea that all solutions are available to everyone.<br />
<br />
Also aren't almost all online games based on seeing your own progress bar go up faster than other people's? Not that PE is a game, but still, I don't think I need to do any self-evaluation :S<br />
<br />
[[User: henk263|henk263]]<br />
<br />
You definitely have some introspection to do regarding your motives for doing things.<br />
<br />
The pages won't be removed, and none of the solutions will be removed unless you can prove some legal reason that they must be. Obviously some people find them useful, they are largely Haskell content, or of use to people solving the problems in Haskell, and so are on topic. Leave it alone.<br />
<br />
[[User:CaleGibbard|CaleGibbard]] 22:28, 23 February 2008 (UTC)<br />
<br />
The Project Euler problems are copyrighted under the creative commons license.<br />
http://projecteuler.net/index.php?section=copyright<br />
http://creativecommons.org/licenses/by-nc-sa/2.0/uk/<br />
Legal version http://creativecommons.org/licenses/by-nc-sa/2.0/uk/legalcode<br />
If you read this you will see that the [[HaskellWiki:Copyrights|simple permissive license]] is not identical to the creative commons licence.<br />
The share alike condition reads:<br />
"Share Alike. If you alter, transform, or build upon this work, you may distribute the resulting work only under a licence identical to this one."<br />
So in fact the pages I referred to are both infringing in the Project Euler copyright.<br />
<br />
[[User: hk|hk]]<br />
<br />
:None of these pages contain any of the problem statements or content published on the Project Euler site. --[[User:CaleGibbard|CaleGibbard]] 22:31, 23 February 2008 (UTC)<br />
<br />
::You overlook the phrase "or build upon this work," and you cannot deny that those pages build on the Project Euler work.<br />
::Moreover, some solutions are copies from the Project Euler Forum. --[[User: hk|hk]]<br />
<br />
:::It refers to making derivative works; these are no more derivative works than my saying 'What is 2+2?' a derivative work of the work of kindergartener teachers. These are eternal mathematical theorems and principles; they can no more be copyrighted or trademarked or patented than can a prime number, even if it takes decades to compute it.<br />
:::I certainly do agree with you about the problematic copyright status of the solutions, though. --[[User:Gwern|Gwern]] 00:15, 24 February 2008 (UTC)<br />
<br />
-----<br />
These pages must be deleted.<br />
<br />
They are not in the spirit of Project Euler.<br />
<br />
They are ruining the fun of problems and the fun of climbing up the ladder.<br />
<br />
I am aware that whoever posted this is probably smart and would like us all to know.<br />
<br />
Meanwhile:<br />
<br />
RULE #1 of Project Euler:<br />
<br />
You do not discuss Project Euler solutions.<br />
<br />
RULE #2 of Project Euler:<br />
<br />
You do not discuss Project Euler solutions.<br />
<br />
Keep it in the problem threads.<br />
<br />
----<br />
<br />
I disagree. These are clearly marked as "spoilers". Anyone<br />
who wants to participate in Project Euler and enjoy its<br />
benefits knows that they should not peek at these solutions.<br />
<br />
On the other hand, this problem space is perfect for<br />
illustrating the power of Haskell, and for providing<br />
excellent examples of how to "think in Haskell".<br />
I would refer anyone thinking of learning Haskell to<br />
these pages - with the warning that they might<br />
first want to solve all of the problems in their<br />
current favorite programming language.<br />
<br />
My guess is that many people would look at the<br />
first few solutions, become hooked, and then<br />
redo the rest of them on their own in Haskell<br />
without peeking!<br />
<br />
----<br />
You kill the fun! <br />
<br />
There is only way to publish solution - just protect access to it <br />
with right solution answer, as Euler protects access <br />
to forum's threads.<br />
<br />
But in wiki - these pages must be deleted.<br />
<br />
----<br />
<br />
Note that if you delete these pages, it will be treated as vandalism and reverted. [[User:CaleGibbard|CaleGibbard]] 19:56, 21 February 2008 (UTC)<br />
<br />
----<br />
Category tags are great for making the Haskell wiki easier<br />
to navigate. But having category tags on all of the detail<br />
pages of these problem sets has the opposite effect - it<br />
just clutters the category pages.<br />
<br />
I am removing the category tags from all of the detail pages,<br />
and leaving them only on the main page.<br />
<br />
----<br />
<br />
Either restrict the access to these pages to those who have the solution or delete them, please. It's just not cricket to violate the Project Euler spirit. [[User:Daniel.is.fischer|Daniel.is.fischer]]<br />
<br />
----<br />
<br />
Not everypone plays cricket! [[User:SamB|SamB]] 23:11, 23 February 2008 (UTC)<br />
<br />
== C++ copyvios ==<br />
<br />
I've removed all the C/C++ code I saw on the problem pages. I have no problems with including answers (be they programmatic or constants), but the C code is very problematic. I can assume good faith and believe that all of the text and Haskell code is Freely and correctly licensed (a few answers to the contrary...), but I find it much harder to believe that a Haskeller would license his own C++ code Freely but not also provide a Haskell solution, and harder still when I see assertions that the code is stolen all from Project Euler's internal fora. <br />
<br />
So, I've removed them. I hope I will not see the code re-added; until it's shown that they are licensed appropriately for the wiki, I intend to make sure they are kept off. Cale, as for page history - yes, deletion and partial recreation would be ideal, however I am not an administrator here and so cannot do it. If my wikideletions are ever asserted by one of the copyright holders to be insufficient, well, then we can go back and delete with fire. --[[User:Gwern|Gwern]] 00:15, 24 February 2008 (UTC)<br />
<br />
:I identified several remaining C codes.<br />
:I checked them in the problem Euler forum to be from several different PE users.<br />
:I now put a note in place of this C code stating who published them on the PE Forum.<br />
:It seems that the statement "None of these pages contain any of the problem statements or content published on the Project Euler site. " was somewhat preposterous. --[[User hk|hk]]<br />
<br />
:::I missed some, huh... OK, good. Hopefully that's the last of the copyvios. --[[User:Gwern|Gwern]] 16:01, 24 February 2008 (UTC)<br />
<br />
== Protected ==<br />
<br />
I have protected this page, and will protect other pages as necessary. There seem to be two issues here:<br />
<br />
* '''Copyright violations:''' anything that is not available under our [[HaskellWiki:Copyrights|simple permissive license]] must be removed immediately. Thank you, Gwern, for doing this.<br />
<br />
* '''Spoiling Project Euler:''' HaskellWiki is not part of Project Euler and is therefore not bound by its rules or guided by its values or spirit. HaskellWiki's purpose is, roughly, to promote Haskell. If publishing the Euler problems and their solutions in Haskell serves that purpose then that belongs on this wiki. Some people might be annoyed by being unexpectedly given these solutions: for that reason we should warn them with the appropriate spoiler notices.<br />
<br />
&mdash;[[User:Ashley Y|Ashley Y]] 23:18, 24 February 2008 (UTC)<br />
<br />
:Unprotected now. &mdash;[[User:Ashley Y|Ashley Y]] 22:27, 12 March 2008 (UTC)<br />
<br />
----<br />
<br />
Another vote for its being utterly childish to post solutions to puzzles on another site in contradiction to the wishes of its admins.<br />
<br />
Mark<br />
<br />
----<br />
Quote: ''HaskellWiki is not part of Project Euler and is therefore not bound by its rules or guided by its values or spirit. HaskellWiki's purpose is, roughly, to promote Haskell. If publishing the Euler problems and their solutions in Haskell serves that purpose then that belongs on this wiki. Some people might be annoyed by being unexpectedly given these solutions: for that reason we should warn them with the appropriate spoiler notices''<br />
<br />
And does this sound like democracy to you? It sounds like nazi to me. Like "we do what we want, if that bothers you well, it's not our problem."<br />
<br />
:Actually, it sounds like Libertarianism to me. But if you want to draw specious comparisons and Godwin yourself, go ahead.<br />
<br />
There are billions of problems in internet, which are already published with a solution. Many puzzle sites publish a problem and after one week they provide the solution too. Why can't you just pick one of them? There are plenty of problems that could be useful to learn haskell.<br />
<br />
:If those billions of problems are so useful and suitable, then why aren't Haskellers doing them instead? --[[User:Gwern|Gwern]] 20:55, 29 April 2008 (UTC)<br />
<br />
Also, once I have learned how to use (eg.) an array, why should I learn it again? I don't see new haskell concept published in every solution you provide, so, if this was just to improve haskell skills, why you spoil problems that touch things already covered?<br />
<br />
When you play at project euler, you begin a journey. Some people don't care about the ranking, some others do. For those, knowing that solutions are available for everybody, its not pleasant, because then the ranking is not the same any more. You are always left with the doubt that who's ranked higher than you might have cheated. Personally, every time a new problem comes out, my only preoccupation is to solve it and post my solution on p.e. forum BEFORE some of you post the solution here, so if someone goes and check me I don't mind because I'm clean.<br />
<br />
Concluding, you certainly do have the rights to do what the law lets you do, but you should understand that your rights fall down when you do something that bothers other people (a lot, believe me). Even more when you could easily choose another site of the kind I said before, one of those which provide solutions to their problems.<br />
<br />
Haskell learners would still learn, and p.e. users would be able to play in peace. If you don't understand this then you should try.<br />
<br />
sfabriz<br />
<br />
----<br />
Actually, it sounds like Libertarianism to me. But if you want to draw specious comparisons and Godwin yourself, go ahead.<br />
<br />
: Actually I didn't know about this Godwin's law so thank you, I learned something new. Anyway, leaving every nazi stuff apart, the question is really why to spoil p.e. problems. If you look at words like "math puzzle, problems, programming challenges, etc." on google, you can find plenty of really cool websites that provide similar content than what you find on p.e.: math stuff, programming stuff, geometry stuff, and so on.<br />
:So, since some of them don't keep score like it's done on p.e., why not to choose one of them? I mean, if you want to show say a Fibonacci generator, isn't it good to apply your code to a Fibonacci related problem? At that point, isn't any Fibonacci related problem good? So I guess it would be possible to choose a Fibonacci related problem from some site that also gives the solution. In this way you would have achieved what you claim (promote haskell) and nobody would be hurt, therefore everybody wins.<br />
:Wouldn't it be good for everybody?<br />
<br />
If those billions of problems are so useful and suitable, then why aren't Haskellers doing them instead?<br />
<br />
:Let me get this right. Do you really think p.e. is the only source for interesting maths problems? With all respect, but I don't think so. Ever heard of uva (http://acm.uva.es/problemset/)? And this is just an example. You just have to open google and search.<br />
<br />
sfabriz<br />
<br />
----<br />
<br />
The reasoning on the front of this page is preposterous:<br />
<br />
<blockquote><br />
Note that these solutions are indeed entirely within the spirit of Project Euler. For those who feel otherwise, note that the FAQ on the [http://www.projecteuler.net/ front page of the Project Euler site] says the following:<br />
<br />
<blockquote><br />
<p><em>I solved it by using a search engine, does that matter?</em></p><br />
<p>That depends on your motivation for solving the problems. It probably means that you've missed out on some beautiful and hidden mathematics.</p><br />
</blockquote><br />
</blockquote><br />
<br />
So, because the PE site advises people to not cheat, therefore it's "entirely within the spirit" to post solutions? Clearly, that FAQ answer was put there ''in response'' to pages such as this. I'm changing this wording (so by the time you read this it may be different). [[User:Galen|Galen]] 06:38, 10 September 2008 (UTC)<br />
<br />
----<br />
<br />
Dear HaskellWiki,<br />
<br />
The wiki pages you have on PE problems in Haskell seems interesting and something one could learn from. If I had the time to learn Haskell (and not just stick with Python, which I personally use for solving the PE problems), it would be interesting to have a look at the solutions after having solved problems myself.<br />
<br />
However, the problem is that many users get tempted to climb the PE ladder the easy way by cheating. Of course they are really cheating themselves, but it is still a great nuisance for those of us who try to climb the ladder "the hard way", to see users climb by on the high score lists in a pattern which is clearly indicative of cheating.<br />
<br />
The negative effects on the PE community by having solutions here by far outways, I think, the benefits of having them here.<br />
<br />
From the responses above I get the impression that the opinion of the HaskellWiki on this dilemma is: Why should we care about another community, we do what is best for us irrespective of other communities. That is a viewpoint, which I respect, albeit I do not agree wth it. Currently PE gives something to this community, which is a set of problems, which are interesting from a Haskell point of view. It takes a substantial time and effort to develop those problems. It is done volunteerly, because it is fun. It is not fun though, when the payback is published solutions. That is poisonous to the PE community.<br />
<br />
There is a perfect place to discuss Haskell solutions to PE problems and that is on the PE fourm threads, which unlock when a correct solution is given. That is where they belong.<br />
<br />
It has been argued that it is just like walk-thoughs of computer games. I do not agree with that viewpoint. PE is not a childs game, the harder problems requires lots of brains to solve, much more than completing a computer game.<br />
<br />
The HaskellWiki is not the only one, which publishes PE solutions, but it is near the top on search engines besides the main site. I am writing to other main sites as well (as many as my time allows).<br />
<br />
I kindly urge this community to consider if there are not other problem solving sites, which are more adequate for displaying the power of Haskell without spoiling the fun of the problem solving community?<br />
<br />
Kind regards,<br />
--[[User:Slaunger|Slaunger]] 21:25, 21 July 2010 (UTC) aka user slaunger on PE<br />
<br />
* Just one problem with using PE forums to post your solutions: they are '''locked''' (the lower numbered ones). :-L That still doesn't make it OK to post them here, IMO. PE clearly asks of its users '''not''' to post solutions anywhere except on its forums. (I'd say fora, but I don't speak Latin). We're given these problems on condition we not publish them, it's kind of breaking a promise to do so. It's ''not nice''. So ''I'' wouldn't go as far as to say I ''respect'' this choice/"viewpoint". It's clear to me these forums here should be protected by right solutions as passwords, just like on PE site. OTOH having a place to discuss a solution you've just come up with is thoroughly needed, and the urge to show it off can get the better of anyone. [[User:WillNess|WillNess]] 07:16, 2 July 2011 (UTC)<br />
<br />
____<br />
<br />
Let me just throw in $.02 in this as someone who used to teach at the university level. What is being discussed here is a common problem in education. On the one hand solution keys can create temptations for people who then "cheat" either out of momentary weakness or a more profound desire. On the other hand good quality worked problems, like the REA books or the solutions in Schaums are good for education. <br />
<br />
It is understandable that some people doing the Euler problems don't think these answers should be redistributed. However, if project Euler (Colin Hughes) genuinely wanted to be able to enforce the kinds of restrictions that many posting here are asserted he should have fully maintained copyright. Then this page would be a obvious derived work, and thus without permission a violation and a failure to obey the takedown notice would be enforceable. But he didn't do that instead according to the [http://projecteuler.net/copyright| Project Euler copyright] Euler is licensed under an open license which encourages and allows for derived works to be redistributed providing that credit is given to Project Euler for the original work. <br />
<br />
I think there are people speaking for Project Euler who are one class of users, not creators the work asserting an ownership that does not exist. The Euler problems are useful for teaching people how to reason on algorithms. They are also a good collection of examples of well worked problems, that various languages can compare on. Haskell is particularly good at the types of problems in Project Euler so it makes sense this page would be heavily linked to. What we see in these solutions seems to be exactly the kinds of derived works that Colin Hughes was encouraging when he choose to license Project Euler the way he did. [[User:Jbolden1517|Jbolden1517]] 02:24, 23 October 2011 (UTC)<br />
<br />
You know it's not a big deal what 's your purpose when you trying to solve all the problems from Project Euler ,you just want to do something you like and you do it ,and that's it <br />
gus ,wish you lucky .<br />
<br />
== Why publish solutions on haskellwiki? ==<br />
<br />
Publishing the solutions to the Project Euler Problems is not wanted by Project Euler, that's for sure.<br />
<br />
Some say that there can nothing be done against it, because somebody else can publish it elsewhere.<br />
<br />
I disagree. haskellwiki is responsible for publishing it. it should'nt do. why? It shows haskellwiki in a poor light, and that is something we should avoid. If an idiot would publish it, it wouldn't annoy me that much.<br />
<br />
KamikazeJones</div>KamikazeJones