- 0
Compare Two Binary Search Trees
-
Recently Browsing 0 members
- No registered users viewing this page.
-
Posts
-
By thartist · Posted
Ha! Just as i was mentioning here yesterday that it was weird that MS hadn't announced any 25H2! Hope it includes some more bells and whistles. -
By Fiza Ali · Posted
65-inch Hisense U8 Series Google Smart TV drops to its lowest price by Fiza Ali Amazon US is currently offering the 65-inch Hisense U8 Series Google Smart TV at its lowest price to date. So, if you are thinking of upgrading your home entertainment system, you may want to check it out. The Hisense U8 uses Mini‑LED Pro backlighting with Full Array Local Dimming to deliver up to 5,000 nits of peak brightness. Its QLED Colour system employs quantum dots to render over a billion shades, while Dolby Vision IQ, HDR10+, HDR10, HLG and Advanced HDR by Technicolor formats ensure a wide dynamic range and accurate colour reproduction. A native 165Hz refresh rate combined with a Variable Refresh Rate (VRR) of 48Hz to 165Hzthanks to AMD FreeSync Premium Pro, and Low‑Latency MEMC (Motion enhancement and compensation) eliminate screen tearing and input lag. The Anti‑Glare Low Reflection Pro coating reduces reflections from ambient light. Furthermore, audio is handled by a 72W 4.1.2 channel system featuring Dolby Atmos, with four primary and surround speakers, two up‑firing height channels and a built‑in subwoofer. Powered by the Hi‑View AI Engine Pro, the U8 Series automatically analyses and optimises picture and sound according to the content on screen. Moreover, Google TV provides a full smart platform with Google Assistant built in, compatibility with Alexa, access to apps, and voice control. Finally, connectivity options include Wi‑Fi 6E, Bluetooth 5.3, three HDMI 2.1 ports (one with eARC), two USB ports (one USB 3.0, one USB 2.0), optical digital audio output, RF antenna input (NTSC/Clear QAM/ATSC 3.0), composite video and L/R audio inputs, and an Ethernet LAN port. 65-inch Hisense U8 Series Google Smart TV: $1,242.87 (Amazon US) - 44% off This Amazon deal is US-specific and not available in other regions unless specified. If you don't like it or want to look at more options, check out the Amazon US deals page here. Get Prime (SNAP), Prime Video, Audible Plus or Kindle / Music Unlimited. Free for 30 days. As an Amazon Associate, we earn from qualifying purchases. -
By lonegull · Posted
Then why are you here commenting? -
By lonegull · Posted
Unless you have bought a CoPilot+ laptop or tablet with a Snapdragon AI processor, Recall is not installed. -
By Xenon · Posted
Teams is a happiness sucking piece of software design to make life horrible for those who use it. I am so glad I only use it once a week.
-
-
Recent Achievements
-
Alexander 001 earned a badge
Week One Done
-
icecreamconesleeves earned a badge
Week One Done
-
PAC0 earned a badge
One Year In
-
PAC0 earned a badge
One Month Later
-
Shahmir Shoaib earned a badge
One Year In
-
-
Popular Contributors
-
Tell a friend
Question
Jebadiah
I have been trying to figure out a way to compare two Binary Search Trees without multi-threading or any other such parallel computing means. The goal is to test the equivalence of two Binary Search Trees.
The definition of equivalence here is that the number of nodes must be same, and values contained in the two trees must be equal.
For example, see the attached image for two equivalent trees. Now, how would you test the equivalence of these programmatically?
One method I know of is to traverse the tree using any of the traversal methods - Inorder, Preorder, Postorder, etc. and then compare the results with the other tree's. One may even use a BFS or DFS algorithm.
Any other more efficient ways you can think of doing this?
PS: I am NOT in school. This is NOT a homework assignment. I graduated 3 years ago and I am brushing up on data structures. So please keep an open mind. Thanks!
Link to comment
https://www.neowin.net/forum/topic/847418-compare-two-binary-search-trees/Share on other sites
9 answers to this question
Recommended Posts