I'm writing some research that involves explaining some relational data structures. I frequently find it very difficult to remove ambiguity from the sentences I am trying to write. For example, the following sentence seems ambiguous to me:
When a boolean function receives an n-length boolean vector x as input, the function outputs the boolean value that is contained within the row of the function's lookup table that contains x.
It is the relative clause that seems ambiguous here. Does "that contains x" refer to the row or the lookup table? I could be referring to the row that contains x in a lookup table, or the lookup table that contains x where this lookup table contains only one row. I could replace "the row of the function's lookup table" with "the function's lookup table's row" to remove this ambiguity. But I'm unsure if the use of multiple possessive nouns is stylistically frowned upon or not (it certainly doesn't feel great to say out loud). Also, what if there are even more possessive nouns? Here is a less technical example with even more possessive nouns:
When a cashier executes a transaction for a product, the store's computer finds the store's parent company's database's row that contains the price of the product and the cashier asks the customer to pay this price for the product.
This seems very awkward to me. I could replace "the store's parent company's database's row" with "the row of the store's parent company's database", but this reintroduces the aforementioned determiner-based ambiguity.
Are there any techniques that can be used to restructure sentences like these so that the ambiguity is removed without introducing sequences of possessive nouns? Readers could use context clues in the rest of the text to decide which way they should interpret sentences like these. But for the type of technical writing I'm doing I don't think I should write sentences that have multiple interpretations, especially in cases where individuals without a background in the subject area are reading the research. I've considered adding diagrams to provide clarity, but I would have to do this so frequently that this approach would be impractical.
Also, does anyone know if there is a name for this kind of problem I'm experiencing?
The first two questions have answers that suggest using a possessive noun. But in this question, introducing a possessive noun results in multiple possessive nouns and I already explained that I have some uncertainty about this stylistically. The first of those suggested questions has an accepted answer that provides some additional alternative solutions. But I do not believe these solutions are suitable in this case. For example, the answer suggests that having or not having a comma before the pronoun "who" may somewhat disambiguate what "who" refers to. However, the user who posted the answer admits that in both cases, the sentence is "still rather ambiguous in print" and I already explained that removing ambiguity is important in this case because of the technical nature of the writing.
The following question that was suggested by another user contains an answer that provides a name for this kind of problem What is this an example of: "FOR SALE: Car by elderly lady with new body and spare tire". Whilst I did ask for a name that describes the problem I have described in this question, this was only a very small part of the question. This small part of the question was too minor to warrant an additional post, especially because it is linked to the context of this particular problem I am experiencing, which I have now explained is different to the suggested questions.