julian-upc / discrete-geometry Goto Github PK
View Code? Open in Web Editor NEWLecture notes for a class held at Universitat Politècnica de Catalunya
Lecture notes for a class held at Universitat Politècnica de Catalunya
https://github.com/julian-upc/discrete-geometry/blob/d6d662cef6dcbb6ee14f17d42f5c3d559bb8e92c/2014/exercises/sheet1/sheet1_quentin_pergeline.gpg
... has some problems. It appears to be an ascii hex dump but not a gpg encrypted file.
Hi Cassandra,
... the point being that if you encrypt your code, we can't use github's comment facilities to discuss it.
Thanks!
Hi Elisabet,
Just some nits to pick in your solutions on Sheet 2:
Best,
Julian
... at 6e78ca4
Let's talk about some details in your c++ code.
Re Problem 2: Compare your list to http://arxiv.org/pdf/math/0406224 . Which one are you missing?
Congratulations! You wrote some excellent code, and kudos for using c++11
. Some minor comments are at 93a1f59 .
However, there are some comments on the larger picture I'd like to make. Above all, I think you should reconsider your choice of programming language for this assignment. You spent an inordinate amount of time reinventing the wheel (Rational
class, explicit determinants, etc), when in fact all computations in sight are constant-time (because the size of the matrices is fixed), and so the choice of an efficiency monster like c++
isn't really justified.
So I'd suggest that the next time you find yourself in such a situation, you reach for a higher-level language that allows for type-checking, like the sage
framework. I think you'll save yourself a huge amount of development time, when ultimately the performance difference (and thus, sadly, the benefit of using c++
) is going to be negligible.
You actually don't prove that the edges of the permutahedron correspond to adjacent transpositions! So you don't really know that the polytope is simple. But otherwise, the exposition is very nice and detailed. Thanks!
Congratulations! You solved the problem. Here is a prize for you:
http://arxiv.org/pdf/math/0406224
However, I missed where you use Pick's Theorem.
Thanks for the nice research! You missed the issue with the unencrypted metadata, though.
Hi Ainize,
just some comments on your latex: the scalar product is best written \langle x,y\rangle
(and if you want you can define a macro so that you don't have to type that every time).
Moreover, general math operators are defined using, e.g., \DeclareMathOperator{\skel}{skel}
. This will give you the correct font and the correct spacing of the symbols around it. In your case, the operator \min
is already predefined in latex.
In the part about email with gpg, you missed the issue with unencrypted metadata.
Finally, see the comments on your code in
74f4d46
It would be better to not encrypt your code, because that way we can use github's commenting features to talk about it..
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.