473,387 Members | 1,517 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

arithmetic of random bit using gmp library?

i want to representation the large random bit to operate the arithmetic, like this

example
input n=10, then
10 random bit has create
A[]=[1011011100]
B[]=[0010010011]

i want to divide the array to any part like
A[]=[[10110],[11100]]
B[]=[[00100],[10011]]
_____________________xor (per block)
B[]=[[10010],[01111]]

how can i implementing it, using the gmp library

nb: n up to 1000 or more...

regard,
Jun 29 '10 #1
0 965

Sign in to post your reply or Sign up for a free account.

Similar topics

32
by: Protoman | last post by:
I have a function that calculates the mean of the some numbers; I need it to accept any number of parameters (one needs to be the number of the other parameters) Can you help me out here? Here's...
10
by: David Soukal | last post by:
Hello, I have an interesting problem that I'm tackling with. I'm sure there must be some obvious solution... I have this big project. It's composed of several *.lib modules. Now, one of the...
1
by: vertigo | last post by:
Hello I write program in C#. I wanted to load mp3 files to read it's size, title and others. So i downloaded id3lib from: id3lib.sourceforge.net, compiled it using Visual Studio NET (with...
1
by: A.Dagostino | last post by:
hi everyone i have developed a library in vb6 to import an excel file ftom client to a sql 2000 table on the server.This object must run at server. How can i create this object on a web asp...
4
by: =?Utf-8?B?Sm9l?= | last post by:
I have a .NET class library called NorthwindLib and a class called Customer. I have a web server that exposes a web method GetCustomer() and returns a NorthwindLib.Customer object. I want to...
0
by: tigger | last post by:
Hi there, I have a problem displaying the correct random values extracted from the database. I'm using arrayRandom that stores left250 values and make it appear 90% of the time....
4
by: almon | last post by:
I am beginner in programming.I want to make a program which reads pdf documents.For this (after googling) I found that a library pdflib is uded to do so.but i dont know how to use any library.
4
by: Reshmi | last post by:
Hi, I have this C code which does complex number arithmetic. When I try to write a similar file for C++, it says that "creal’ was not declared in this scope". Can anyone give a better idea to...
3
by: tokcy | last post by:
hi everyone, i have a large database and i want to update one colomn(type is TIME) using RAND() function but i am not able to do so. please help me out. how can i use RAND() function.
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.