TiredOfLife's blog

By TiredOfLife, history, 4 years ago, In English

I was solving Problem B from Bubble cup 13 Div 1 [Because it is rated as 1900 :( ] . I tried simple BFS + Binary search but later found that it was wrong . After that I saw a lot of solution in standings and all of them are either using Flow algorithm or some matching algorithm and I don't know any of them :) . So I thought maybe they had templates for those algorithms so they used it . But I am thinking can we solve it without using those algorithms or it's time to learn some new algorithms ?
Here is the link to the problem

Full text and comments »

  • Vote: I like it
  • +8
  • Vote: I do not like it

By TiredOfLife, history, 5 years ago, In English

Today I was making an automated program to solve 8 Puzzle and when I am running the same logic in c++ it is working fine but in python it is going to near about 6000-6500 recursions and the recursion is not even working properly and I have no idea why ? Please help !

Note
Python Code
C++ Code
Note2

Full text and comments »

  • Vote: I like it
  • 0
  • Vote: I do not like it