Binary, the base-2 numeral system, represents numbers using two symbols: 0 and 1. For compiled computer programs, use the "executable" tag instead.

learn more… | top users | synonyms

0
votes
1answer
19 views

get the children of a given parent in binary tree

I have a set of numbers:1,2,4,8,16,32,64,..etc. Now given a number let say 44, i have to identify that it has children 32, 8 and 4. (32+8+4=44) What I have so far is the following code: public ...
0
votes
0answers
10 views

Robertson's 1's complement binary multiplication

So I have an assignment but i don't understand how the Robertson's 1's complement method works, can any1 explain it to me in detail? Also I'm interested in what direction the bits shift during the ...
0
votes
0answers
17 views

Parsing binary data with integrity keys embedded - techniques?

I am trying to get a solid strategy together to parse binary data that has embedded integrity symbols. Here are the construction rules in EBNF form: Log ::= {Data}; Data ::= Key,DataList; DataList ...
0
votes
0answers
3 views

Construct a binary tree from preorder and inordere

**hi there , well I'm trying to find a solution for this ,but i think i'm not smart with algorithms I have this String in preorder and inorder : Preorder:E A S Y Inorder :Y E S A Is it possible ...
0
votes
0answers
32 views

c++: use boost range transformed adaptor with binary function

Suppose I have two std::vectors x and y and a binary function F. I would like to create a new object z (not necessarily a vector), with the property that the ith elemenent of z will be the application ...
0
votes
2answers
21 views

How to read TIFF File headers in c?

How can i read a tiff file header in c ? actually i want to learn TIFF Tag ImageWidth, and TIFF Tag ImageLength. how can i acces this attributes? ...
0
votes
1answer
32 views

encrypt a text message along with binary data

Can I put text string (serving as password) and binary data (an image file actually) together and encrypt them and then save into new a file. To view the image, first, check if password matches, if ...
0
votes
2answers
44 views

Java binary search, high values throw exception

I'm trying to implement a recursive binary search, after looking at the example on this textbook page. My algorithm seems to work fine in most cases, but on values higher than the highest value in ...
2
votes
5answers
75 views

n bit 2s binary to decimal in C++

I am trying to convert a string of signed binary numbers to decimal value in C++ using stoi as shown below. stoi( binaryString, nullptr, 2 ); My inputs are binary string in 2s format and stoi ...
0
votes
2answers
19 views

Why is my iOS app's binary invalid when uploading a new version?

Im adding a version of a app to iTunes that already published. now I did some big fix and upload the binary to the itunes. but after uploading it says invalid binary with a red dot. even I validated ...
2
votes
2answers
49 views

encode binary to audio python or C

using C or python (python preferred), How would i encode a binary file to audio that is then outputted though the headphone jack, also how would i decode the audio back to binary using input from the ...
1
vote
1answer
45 views

Power Sets ~ Recursion ~ Hasse Diagrams

(SEE BELOW ALSO) So I've got some functions and some operators for a set-manipulation program I'm coding, and I want to have power sets as a utility too (never mind the comments in the code). I don't ...
2
votes
3answers
43 views

python convert to binary and keep leading zeros

I'm trying to convert an int to binary using the bin() function in python. However, it always removes the leading zeros, which I actually need, such that the result is always 8-bit: Example: bin(1) ...
0
votes
1answer
19 views

Compiled file to use within Android App [closed]

I want my iOS application to be written for Android devices. I am thinking to outsource the app. Now my application has a calculation engine which is heart of the application. It's just an objective ...
0
votes
1answer
37 views

Read binary file line by line into textbox

I have a binary file "blahblah.dat" that consists of data stored in a 16byte structure. Each line in my file is 16 bytes long. I want to read this file line by line, converting the binary data into ...

1 2 3 4 5 271
15 30 50 per page