How to share your wallet key/seed in case you are hit by a bus This very useful answer says:

Share overlapping parts of your private-key or seed phrase with several family members with instructions on what to do if you are hit by a bus this afternoon.

This sounds like very good advice, but the details of doing so seem like a complicated balance of trust and chance of dying.  For example, I may trust my spouse most, but they are likely to be in the same car as me.  My parents next, but they are old and frequently in the same car driven by an old person.  My siblings next, but there are not many of them.  My friends somewhat, but there are lots of them and they do not all talk to one another.
Has anyone devised an algorithm to split up your private key or seed such that you can balance these considerations?  Perhaps something like allowing you to specify that any one of these sets of people are sufficient to access funds:

spouse and one sibling
both parents and one sibling
All siblings
7 out of 15 friends
You can accomplish all of this and more using a &quot;pay to script hash&quot;. You can even do more complicated rules like &quot;let my business partner have access to my account if either my lawyer or my wife agrees (but lawyer and wife can not together access account, so more complicated than just 2-of-3).&quot;
Here is a great chapter on this stuff...
https://www.oreilly.com/library/view/mastering-bitcoin-2nd/9781491954379/ch07.html