Skip to content

Fet: Add Single Bit Manipulation Operations #4350

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
5 tasks done
BamaCharanChhandogi opened this issue Sep 4, 2023 · 4 comments
Closed
5 tasks done

Fet: Add Single Bit Manipulation Operations #4350

BamaCharanChhandogi opened this issue Sep 4, 2023 · 4 comments

Comments

@BamaCharanChhandogi
Copy link
Member

BamaCharanChhandogi commented Sep 4, 2023

What would you like to Propose?

  • I have read CONTRIBUTING.md.
  • This pull request is all my own work -- I have not plagiarized it.
  • All filenames are in PascalCase.
  • All functions and variable names follow Java naming conventions.
  • All new algorithms have a URL in their comments that points to Wikipedia or other similar explanations.

Issue details

Single Bit Manipulation Operations:
want to add 3 functionalities GetBit, SetBit, and ClearBit.

Additional Information

No response

@peeplika
Copy link

peeplika commented Sep 7, 2023

hey i want to work on this , can it be assigned to me ?

@lukasb1b lukasb1b mentioned this issue Sep 7, 2023
5 tasks
@BamaCharanChhandogi
Copy link
Member Author

Hi, @lukasb1b,
All functions should be included in one file named 'Single Bit Manipulation,' like this. That would be better.

@vil02
Copy link
Member

vil02 commented Sep 7, 2023

I would rather suggest to create a class BitArray (with length passed in the constructor). The underlying data type should be int[] or char[] (maybe the BitArray should be a generic type?) - I am not sure what is better. Some benchmark should be performed.

Such class should have methods like SetBit, ClearBit, FlipBit etc. And functionality to and, or and xor two BitArray's of the same length.

Honestly that would be a quite fun task - I can support you here.

The interesting thing: this will not be an utility class!

@BamaCharanChhandogi
Copy link
Member Author

That's a really great idea.
I will also support. Go on.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants