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

Orthogonal Range Searching #54

Merged
merged 14 commits into from
Mar 29, 2024
Binary file added docs/assets/images/1DORS.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assets/images/1DORSDynamicUpdates.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assets/images/1DORSQuery.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assets/images/2DORS.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assets/images/2DORSQuery.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assets/images/2DORSTrees.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion docs/team/profiles.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
| Name | Description/About | Website (LinkedIn/GitHub/Personal) | Contributions |
|-----------|-------------------------------------------------------------------|------------------------------------------------------------------------------------------------------|-------------------------------------------------------------|
| Andre | Aspiring ML engineer. Developing this with wonderful ex-students. | You can find me [here](https://4ndrelim.github.io)! | Team lead |
| Kai ting | Likes algorithms and a committed TA! | [Hi](https://www.linkedin.com/in/kai-ting-ho-425181268/) | Cool sorting and obscure trees! B-Trees, ORS.. |
| Kai Ting | Likes algorithms and a committed TA! | [Linkedin](https://www.linkedin.com/in/kai-ting-ho-425181268/) | Cool sorting and obscure trees! B-Trees, ORS.. |
| Changxian | DevOps is right up his alley! | ... | Hashing variants! BTS DevOps - configure Gradle & workflows |
| Shu Heng | Interested in ML, aspiring researcher. | No website but here's my [Linkedin](https://www.linkedin.com/in/yeoshuheng), please give me a job :< | CS Fundamentals! Stacks and queues! RB-tree. |
| Junneng | Aspiring tech entrepreneur. | [LinkedIn](https://www.linkedin.com/in/soo-jun-neng/) | Binary Search variants, Minimum Spanning Trees! |
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
package algorithms.orthogonalRangeSearching;
kaitinghh marked this conversation as resolved.
Show resolved Hide resolved

public class RangeTreeNode<T> {
T val;
int height;
RangeTreeNode<T> left = null;
RangeTreeNode<T> right = null;
RangeTreeNode<T> parent = null;
RangeTreeNode<T> yTree = null;

public RangeTreeNode(T val) {
this.val = val;
}

public RangeTreeNode(T val, RangeTreeNode<T> left, RangeTreeNode<T> right) {
this.val = val;
this.left = left;
this.right = right;
}

public T getVal() {
return this.val;
}

public int getHeight() {
return this.height;
}

public RangeTreeNode<T> getLeft() {
return this.left;
}

public RangeTreeNode<T> getRight() {
return this.right;
}

public RangeTreeNode<T> getParent() {
return this.parent;
}

public RangeTreeNode<T> getYTree() {
return this.yTree;
}

public void setVal(T val) {
this.val = val;
}

public void setLeft(RangeTreeNode<T> left) {
this.left = left;
}

public void setRight(RangeTreeNode<T> right) {
this.right = right;
}

public void setParent(RangeTreeNode<T> parent) {
this.parent = parent;
}

public void setHeight(int height) {
this.height = height;
}

public void setYTree(RangeTreeNode<T> yTree) {
this.yTree = yTree;
}

@Override
public boolean equals(Object other) {
if (other == this) {
return true;
}
if (!(other instanceof RangeTreeNode)) {
return false;
}
RangeTreeNode<T> node = (RangeTreeNode<T>) other;
return this.val == node.val;
}

@Override
public String toString() {
return String.valueOf(this.val);
}

}
Loading
Loading