Efficient way of verifying a sum of multiple numbers

Efficient way of verifying a sum of multiple numbers

Postby dNy » Mon Dec 05, 2022 7:13 pm

Hello!

If I have, let's say 1000 numbers or 10k numbers, and they all add up to 100 when combined, what would be the most efficient way to verify that in fact the sum of all of them is 100?

I was thinking of a Merkle Tree, but I'm not really sure how to apply it in this case. I could just do n + n1 + n2 + n3....+ n10k, but that's not really scalable nor efficient.

Thanks beforehand for any help.
dNy
 
Posts: 3
Joined: Tue Oct 19, 2021 2:28 pm
Reputation: 0

Return to Programming and Algorithms



Who is online

Users browsing this forum: No registered users and 1 guest

cron