In America every resource I've ever seen describes in-order traversal of a tree as "left, parent, right". Obviously there's nothing technically requiring that left take precedence over right, it's just a standard. Presumably this is because we read from left to right. Some languages in the world are read from right to left. Do programmers in cultures whose primary language is right-to-left still implement traversals from left to right?
Do right-to-left language natives traverse trees in a different order than left-to-right language natives?
95 views Asked by Stephen Collings At
1
There are 1 answers
Related Questions in RIGHT-TO-LEFT
- Does anyone have any idea why my right-to-left (RTL) layout isn't taking effect immediately?
- RN i18n issue on some iOS devices
- flutter selectable text anchor position in rtl languages
- python-docx does not apply font size when changing text direction to RTL
- Views not mirrored for RTL languages
- Kurdish Language Support on Google Play Books
- Write text to a text file in RTL format
- Kurdish font using tcpdf library not working
- right-to-left text (like Hebrew)
- Compose multiplatform - iOS app layout does not adapt to RTL when changing app language to RTL language
- Is Slickgrid right-to-left compatible?
- Is there a way to use scrollview RTL (arabic) with LTR animation?
- Content does not extend to the next page when using direction rtl (Right to Left)
- writing hebrew text in rust
- Write Farsi (persian) text using opencv c++
Related Questions in TREE-TRAVERSAL
- Why is my traversing in BST not showing the results like the sample output?
- A straightforward recursive level-order traversal method?
- Creating a Method in C# that traverses HTML document and extracts content based on a query, i.e Custom HTML Crawler
- Use awk to walk a tree expressed via indendation
- What is wrong with my Morris Traversal code?
- How to spread an infected node to its adjacent nodes and eventually to the whole binary tree?
- binary tree width is given how to find its height?
- C# - TreeView - Data Algorithm
- Iterative solution for finding prefix sum in a binary tree, that equals a target sum
- Reconstruct binary tree from array
- How to traverse the composable tree in android
- React Native - Traverse through all elements
- How to query leaf nodes using a recursive CTE in DolphinDB?
- Set the value of a node in a binary tree
- Exponential time complexity during traversal
Related Questions in LEFT-TO-RIGHT
- Does anyone have any idea why my right-to-left (RTL) layout isn't taking effect immediately?
- CSS Reveal Left to Right - minimum width on content inside
- writing hebrew text in rust
- Text-ellipsis in the beginning with "right-to-left" languages like Arabic in Angular
- Font conditional style CSS
- CSS for slider left to right?
- Anybody help me to solve this problem that how to sum up the elements o an array from left to right?
- Why does an HTML child element not seem to inherit the dir attribute when set to auto?
- Print text from right side
- Trim a character on SQL
- Swipe from right to left in launcher
- Is `textAlign` value automatically reversed in RTL mode?
- Disable RTL on specific UIViewController in iOS
- How to change layout direction of ConstraintLayout at runtime when `android:supportsRtl="false"` is in the manifest?
- Xamarin Forms Entry Change flow direction issue for Arabic language
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Here is the answer from a native Arabic speaker. The answer is it doesn't matter. Simply, because the in-order traverse is not really "left, parent, right". The 'correct' in-order traverse is "first child, parent, second child". Look when we change the node structure to this:
The in-order traverse code wont break. This means You can draw/imagine it upside-down, right-to-left, straight-line... it's all up to you. Books choose to go for 'left' and 'right' because it is easier to teach.