Search:

Type: Posts; User: ordak

Page 1 of 4 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    13
    Views
    248

    Code::Blocks forum address is: Code::Blocks -...

    Code::Blocks forum address is:

    Code::Blocks - Index
  2. Replies
    46
    Views
    1,357

    Can not you use ungetc like here...

    Can not you use ungetc like here ?
  3. Replies
    46
    Views
    1,357

    [...] AFAIR according to C standard digits '0'...

    [...]

    AFAIR according to C standard digits '0' to '9' should be consecutive. But not necessarily for alphabets ('a' to 'f').

    By the way , why you use goto in the code ?
  4. Replies
    3
    Views
    341

    List of some books you may read on this site is:...

    List of some books you may read on this site is:

    Here.

    Although I have read some negative criticism for some of these books. I suggest you start reading the book Deitel and Deitel. At times in...
  5. Replies
    9
    Views
    635

    How about you read K&R . Note that first chapter...

    How about you read K&R . Note that first chapter is different from other chapters. I suppose both function declarations are discussed in the book.
  6. Thread: GA nasty bug

    by ordak
    Replies
    4
    Views
    506

    Ok, considering the above code, let me narrow...

    Ok, considering the above code, let me narrow down the problem. I am very suspect of init() and correct_count() functions. Maybe bug is in them, but there is a strange phenomenon in main() function....
  7. Thread: GA nasty bug

    by ordak
    Replies
    4
    Views
    506

    GA nasty bug

    Hi,

    I am back at my Sudoku Genetic Algorithm. I made a bit of progress. But there is a nasty bug that I can not find it to fix. Please help me. Not that cross-overs and mutations are under...
  8. Replies
    7
    Views
    658

    Related worthy read on bit twiddlig is here...

    Related worthy read on bit twiddlig is here.
  9. Replies
    7
    Views
    597

    Sorry I am not well informed here. But it seems...

    Sorry I am not well informed here. But it seems to me the approach you say is called "mailbox". There is another way to represent chess board and that is called "bitboard".

    For more info see this...
  10. Replies
    7
    Views
    597

    Chess programming wiki...

    Chess programming wiki.

    TSCP.
  11. Replies
    7
    Views
    597

    You may ask your questions from this forum...

    You may ask your questions from this forum. There are many chess coders to help. see the "programming and technical discussions" sub-forum.
  12. Replies
    4
    Views
    560

    [...] I prefer the second function, as it's...

    [...]

    I prefer the second function, as it's input argument is mentioned.
  13. Thread: qsort

    by ordak
    Replies
    6
    Views
    358

    Both return -1 ?

    Both return -1 ?
  14. Replies
    4
    Views
    294

    I already have a Sudoku solver here...

    I already have a Sudoku solver here.
  15. Replies
    4
    Views
    294

    Let me tell an example based on my experience....

    Let me tell an example based on my experience. Suppose you want to solve Sudoku. At one stage you want to know whether two Sudoku states are equal or not. Some Sudoku cells are bounded (they have a...
  16. Replies
    4
    Views
    294

    Hash table in chess programming link...

    Hash table in chess programming link.
  17. Replies
    6
    Views
    338

    [...] Correct me if I am wrong, can I...

    [...]



    Correct me if I am wrong, can I write those lines into the following ?



    int ch;
    while(true)
  18. IMHO it is better to choose between text or...

    IMHO it is better to choose between text or binary file each time. use "rt" to read a text file, "rb" to read a binary file.

    More info
  19. [...] [...] Yet better is :

    [...]



    [...]

    Yet better is :
  20. Replies
    16
    Views
    1,003

    Actually you would better use bit-wise operators...

    Actually you would better use bit-wise operators for unsigned values.
  21. Thread: Sudoku GA

    by ordak
    Replies
    5
    Views
    642

    Any help ? BUMP.

    Any help ?

    BUMP.
  22. Thread: Sudoku GA

    by ordak
    Replies
    5
    Views
    642

    Part of output: Chrom cs[i]: 6 9 8 3 5...

    Part of output:




    Chrom cs[i]:
    6 9 8 3 5 5 4 2 8
    9 4 3 2 6 9 3 8 1
    6 4 1 6 7 4 9 2 8
    9 6 4 7 1 6 3 5 7
  23. Thread: Sudoku GA

    by ordak
    Replies
    5
    Views
    642

    I could post the whole code. Please note that...

    I could post the whole code. Please note that there are issues for this code. My main priority is to get the correct answer.



    // Trying to solve Sudoku using Genetic Algorithm.

    #include...
  24. Thread: Sudoku GA

    by ordak
    Replies
    5
    Views
    642

    To begin with, I suggest a fixed number of...

    To begin with, I suggest a fixed number of population. I have a few mutation of fittest in the previous population and rest are produced using cross-over.



    #define POPULATION 11
    static const...
  25. Thread: Sudoku GA

    by ordak
    Replies
    5
    Views
    642

    Sudoku GA

    Hi,

    Do you think the following fitness function is correct :




    typedef struct
    {
    uint32_t fitness; // Minimize number of wrong cells, was uint8_t
Results 1 to 25 of 92
Page 1 of 4 1 2 3 4