exercism / exercism/problem-specifications

POV: Family tree is not a good example

Open
#1,950 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Ruby
Stars
358
Forks
563
Avg merge
18h 41m
Merged PRs (30d)
2

Description

The [description of the POV exercise](https://github.com/exercism/problem-specifications/blob/37f7831be7b29edf05a5f9e56825c125c4eaf707/exercises/pov/description.md?plain=1#L10-L19) contains this part:

> For example family trees are usually presented from the ancestor's perspective

However, the exercise is about having a tree with some root and then making some other node the root. This only makes sense
a) if there is only one root node
b) if there is no direction in the tree (undirected graph) otherwise if there would a direction e.g. away from the root, changing the root would change the graph/tree.

A family tree has usually has two root nodes (2 people having offspring) and has a direction (e.g. from parent to child, it does not make sense to switch the root to a child). So a family tree is not a good example to use.

Can someone think of a better example where there is only one root and the task of changing the root but representing the same tree would actually make sense?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.