Skip to content
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

[NEW EXAMPLE] ZooKeeper - Trie #11

Closed
ainzzorl opened this issue Jul 16, 2021 · 3 comments
Closed

[NEW EXAMPLE] ZooKeeper - Trie #11

ainzzorl opened this issue Jul 16, 2021 · 3 comments
Labels
new example New example proposal

Comments

@ainzzorl
Copy link
Owner

General

  • Project name: ZooKeeper
  • Example name: Trie implementation
  • Project home page: https://github.com/apache/zookeeper
  • Programming language(s): Java
  • Frameworks, libraries used: N/A

Description

ZooKeeper is a centralized service for maintaining configuration information, naming, providing distributed synchronization, and providing group services.

ZooKeeper operates with znodes - data objects organized hierarchically as in file systems. In some cases it needs to find the longest stored prefix for a given path. For this, it uses the Trie data structure.

Links

https://github.com/apache/zookeeper/blob/e642a325b91ab829aefa47708c7b4b45811d2d23/zookeeper-server/src/main/java/org/apache/zookeeper/common/PathTrie.java

https://github.com/apache/zookeeper/blob/e642a325b91ab829aefa47708c7b4b45811d2d23/zookeeper-server/src/test/java/org/apache/zookeeper/common/PathTrieTest.java

What makes it interesting

  • Trie is a popular data structure, very frequently used in job interview problems :-)

Related work

N/A

Other

N/A

@ainzzorl ainzzorl added the new example New example proposal label Jul 16, 2021
@ainzzorl
Copy link
Owner Author

@ainzzorl
Copy link
Owner Author

Before publishing:

@ainzzorl
Copy link
Owner Author

Updated and marked as PUBLISHED. I haven't found another Trie implementation in big open source projects.

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

No branches or pull requests

1 participant