Better HN
topnewbestaskshowjobs
Log inSign up

zschoche

256 karma · joined Sep 15, 2012 (14y ago) · 27 submissions

https://zschoche.org
Submissions

comment 2y ago · link · parent

Quick question: what are the NP-hard problems in the database area?

comment 3y ago · link · parent

It would be great if someone could precisely define what is the goal we would like to optimize. In mathematical terms.

comment 3y ago · link · parent

Nit: if number n is given in binary representation in the input, then an O(n)-algorithm runs in exponential time as n is an exponential function of log(n). Hence, log(n)^O(1)-time algorithms for the Fibonacci number are reasonable to exist, unless the decision version of the Fibonacci number is NP-hard.

comment 3y ago · link · parent

Well, it always depends on what you lookup i.e. how much time one needs to compute entries of the given lookup table. If it takes O(2^n) time , then payback comes quickly, where n is the input size. It’s good advice to be very skeptical if one drops general statements like that. Look for algorithms with the best worst -case time complexity is a good start. It will always win. Theory works. Question is only of big the input has to be in order to see that. Here, the fun part starts I guess.

comment 8y ago · link · parent

Okay let (P,k) be a parameterized problem which admits a fixed-parameter algorithm with respect to k. That means you have an algorithm which runs in f(k)n time, where n is the input size and f is a function only depending on k (for example (2^k)*n). Hence, if your real-world instances have always a small k then you can solve arbitrary large instances. Note that one problem can have a lot of different parameters and not all admitting such an algorithm (unless the world is very different than we believe). Now let (P’,h) be another parameterized problem and you have a polynomial time reduction from P’ to P. Then, this reduction gives you a fixed-parameter algorithm for P’ with respect to h if the value of k in the reductions depends only on h and nothing else.

comment 8y ago · link · parent

if a problem is NP-hard does not mean that each instance is hard to solve. From my experience many instances appearing in practice are easy to solve even if there very large. The problem with these instances is that it takes to much space to write done the SAT-formual. So you do not even get to the point where you would run the solver. But a simple problem specific search tree algorithm has no problem with solving it. Bottom line, if you really need to solve a NP-hard problem then you might want to look for fixed-parameter tractable algorithms.

7.

Serious attempt to prove P!=NP(arxiv.org ↗)

1 points · by zschoche · 10y ago · discuss

8.

Extpp – Ext2 Implementation, header-only, C++14(github.com ↗)

2 points · by zschoche · 11y ago · discuss

9.

One Hacker Way – Agile Is Dead (2014)(vimeo.com ↗)

4 points · by zschoche · 11y ago · discuss

10.

Boost::variant vs. polymorphism, very different results with clang and gcc(stackoverflow.com ↗)

2 points · by zschoche · 12y ago · discuss

comment 12y ago · link · parent

In most cases, lambdas are rvalues. That can have an impact on its scope and lifetime.

12.

Make C++ Smart Pointers A Bit Smarter(zschoche.org ↗)

3 points · by zschoche · 12y ago · discuss

13.

Make C++ Smart Pointers A Bit Smarter(zschoche.org ↗)

3 points · by zschoche · 12y ago · discuss

14.

Why C++ for Unreal 4(forums.unrealengine.com ↗)

209 points · by zschoche · 12y ago · 171 comments

15.

Way of a Warrant(m.youtube.com ↗)

1 points · by zschoche · 12y ago · discuss

comment 12y ago · link · parent

There is nothing native. Go home and read a books.

comment 12y ago · link · parent

It looks like they understand memory as a tree, but in complex structures it's a graph. I couldn't found how they handle ring topologies. I guess, this stealing stuff doesn't help.

comment 13y ago · link · parent

Decades ago albert einstein introduced the general theory of relativity, which is already telling us that timestamps are bad for synchronisation.

comment 13y ago · link · parent

Not sure what is meant by "research".

It would be nice to justify statements. To write something in upper cases isn't a justification and doesn't make sense.

Each new programming language seems to be better and so on. But if we are looking to the hottest shit on the planet of the past year like java, ruby, python, etc. we can say that we didn't know their problems at the beginning.

comment 13y ago · link · parent

Go - Like

comment 13y ago · link · parent

C++ - Like

comment 13y ago · link · parent

Why exactly does need this app access to all my data at google?

Scary

23.

Debugging In Vim(zschoche.org ↗)

56 points · by zschoche · 13y ago · 16 comments

24.

CCC hacks TouchID(ccc.de ↗)

1 points · by zschoche · 13y ago · discuss

25.

Mlog: Comfortable lightweight C++ logging library(github.com ↗)

2 points · by zschoche · 13y ago · discuss

26.

Aesthetic Driven Development(zschoche.org ↗)

2 points · by zschoche · 13y ago · discuss

27.

AESOP: Auto-parallelizing LLVM(aesop.ece.umd.edu ↗)

2 points · by zschoche · 13y ago · discuss