User Profile
Collapse
-
Thanks a lot, i'll take a look at that :)... -
Thanks a lot Jos :)
It's a Sudoku table, I understand what is going on with that part.
And now this part is bugging me:
colsSet[c] ^= (1<<num);
rowsSet[r] ^= (1<<num);
subgridSet[blockLoc] ^= (1<<num);
Any other help would be appreciated!
Thanks againLeave a comment:
-
General Java Question concerning byte operator and byte rotation
Greetins everyone,
I'm trying to understand the logic in some operation with different byte operator.
I'm looking at:
http://www.exampledepo t.com/egs/Programs/sudoku_solver_S udokuSolver.htm l
More specifically, this operation from the set function:
boolean canSet = cells[loc] == 0
&& (colsSet[c] & (1<<num)) == 0
... -
-
Byte to 0 and 1 String
Greetings,
Now that i've solver my problem writting a string made of 0 and 1 to a byte. I need to do the reverse process.
I use:
Integer.toBinar yString((int)re adedBytes.get(i ))
It returns some odd data like:
111111111111111 111111111110110 11
It should be returning 8 character ? maybe I am wrong..
Anyway, is there any known way to convert a Byte into a string containing... -
Having a small problem with the byte conversion still ...
while((readedCh aracter ) != EOFChar)
{
binaryString += this.correspond ance.get(readed Character);
if(binaryString .length() >=8)
{
String subString = binaryString.su bstring(0, 8);
binaryString = binaryString.su bstring(8);
Byte convertedString = new Byte(subString) ;...Leave a comment:
-
Instead of going throught the tree the whole time, i've created a conversion Hashtable where you call .get(char) and that returns the associated "(not)binar y string"
Thanks for your help still :)...Leave a comment:
-
Java - Problems with the Huffman Algorithm Output
Hello everyone,
I'm trying to make a compression application using the Huffman Algorithm but i'm not sure on how to write to a file the output.
I have a binary sequence associated to every character in the input file.
Now the problem is:
- I create a binary string based on the input file.
- Then I have to write the compressed file, but I have no idea on how to work...
No activity results to display
Show More
Leave a comment: