Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
D

Dezhi Zhao

@Dezhi Zhao
About
Posts
11
Topics
1
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Difficult-to-solve Sudoku wanted
    D Dezhi Zhao

    The 2 puzzles I posted here are classical Sudoku that dictates one and only one possible solution.

    The Lounge csharp design algorithms performance help

  • Difficult-to-solve Sudoku wanted
    D Dezhi Zhao

    Certainly my solver is a general one, cracking any classical Sudoku problems. It can do exhaustive search to see if a problem has multiple solutions. It checks validity before search. I agree most what you said here. I said to a friend when discussing Sudoku: We all know that knowledge is power. But do you still need knowledge if you have power? :) Modern physics is trying to tell us that power and knowledge are the same thing. So, I picked power :)

    The Lounge csharp design algorithms performance help

  • Difficult-to-solve Sudoku wanted
    D Dezhi Zhao

    It is still a simple brutal search program though I added some cutoffs to improve efficiency and also optimized it quite a bit. I don't see a need to go parallel for classical Sudoku at all. So, the numbers I mentioned here is coming from one core off an old laptop with i5-4200M. It is not a secret at all. It is a result of a hobby project. I will publish the code along a short descriptions of design considerations when I get the time. In fact, I did promise a friend of mine a short article about it months ago :)

    The Lounge csharp design algorithms performance help

  • Difficult-to-solve Sudoku wanted
    D Dezhi Zhao

    Your worst case could be worse than the previous example which was my most time consuming problem. So, here is another one that took my program 0.00002s:

    .........
    .....1..2
    ..3.2..4.
    ....5..6.
    .1.....2.
    7..8.....
    ...7..3..
    ..2..6...
    5.......7

    The Lounge csharp design algorithms performance help

  • Difficult-to-solve Sudoku wanted
    D Dezhi Zhao

    I knew that was number I expected from your 80 lines :-\ My C/C++ program took about 0.0027s to crack it :)

    The Lounge csharp design algorithms performance help

  • Difficult-to-solve Sudoku wanted
    D Dezhi Zhao

    try this one and report back:

    .........
    .......12
    ..3.45...
    .........
    ..6...4..
    .7.1.....
    ..82...7.
    3.9.5....
    4...6....

    The Lounge csharp design algorithms performance help

  • Albert Einstein's quiz.
    D Dezhi Zhao

    Here is the Code Project answer:-D: http://www.codeproject.com/cpp/Einstein.asp[^]

    The Lounge question

  • Bool data type issue
    D Dezhi Zhao

    simple: suppose c is what you get from the stored proc and b is the boolean you want. just do this: b = c & 1; cast (c & 1) to bool if needed

    C / C++ / MFC help

  • Anybody here ever tried installing VS2005 beta2 on Windows XP x64?
    D Dezhi Zhao

    I've no problem with VS2003 at all. The problem is I like the VS2005 C++ complier much better than the one on VS2003. It generates really fast code on one of my 32 bit tests.

    The Lounge csharp visual-studio question

  • Anybody here ever tried installing VS2005 beta2 on Windows XP x64?
    D Dezhi Zhao

    Just tried to install MS Visual Studio 2005 beta2 on Windows XP x64 and failed badly. It seems to me VS2005 is not aware of XP x64 at all.:( Does anybody here have a trick to get around this?:) Thanks! -- modified at 9:51 Thursday 22nd September, 2005

    The Lounge csharp visual-studio question

  • A very small performance issue in C++
    D Dezhi Zhao

    This is an effect of L1 cache. You did not mention the CPU you were using. I assume it was a P4. The L1 access line size is 64 bytes if my memory serves me right. If there are no alignment issues(your compiler often does a good job at this), the smaller size the structure is the more effective for a single L1 line access. Nowadays, people often talk about structure of arrary (SoA), that address such issues....

    C / C++ / MFC database c++ performance help
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups