Warren Buffett says the factor which most contributes to your future wealth is who you pick to marry. Do you feel lucky?
https://www.amazon.com/Science-Happily-Ever-After-Enduring/d...
The rate dramatically changes with demographic, for example many of those were married young and did not complete education.
> who you pick to marry
The quote doesn't say whether :) Married men also tend to make more money and work for longer periods of time. There is a cynical view of whether that's good or not, but 40-50 year old single men don't seem to be a particularly successful demographic.
I’d reach out to your professors about your misgivings about your research. Make it clear that you’re looking to complete the thing asap and need guidance.
Forget the outside stuff. Relationships can wait until you’re done. Feeling like a failure or success is almost a worthless concern as you’re clearly nearly done with a huge life goal. A life goal that will change the context of your life ever after. Much more than any marriage could even. Marriages are fundamentally just a societal complication of a relationship - complete with dubious legal consequences and a not a sure thing that can end. (Plus if someone is bailing on you when you’re finishing a degree they definitely weren’t going to be there for you in actually troubling times - like an illness or your house burning down.) But a degree is a hurdle you surpass once and get to wave the success of forever after. (Just don’t be a jerk about it, side point.)
Know that on the other side of your phd is a huge weight off your shoulders regardless of failure or successful defense. This time of strife will end when the phd. Freedom is soon.
You’re looking at a time where the job market remains strongly favorable. I graduated into the Great Recession and would have benefited greatly from this market, high interest rates and other things be damned. The future is still bright - just got to get past this last bit.
I think I agree with 1 year out, but I would be surprised if this hasn't been going on for longer.
I mean, I haven’t write red black trees for a while, but it is a type of binary search tree, as far as I remember, isn’t it?
If so, that sounds fairly limiting to me (i.e. potential extra storage - of duplicates, sorting required, etc).
But yes, you either need to stop occasionally and remove the duplicates or use a set, if the storage is prohibitive.
Otherwise in terms of performance, sorting and unique is much faster than inserting one element at a time in a set.
https://github.com/python/cpython/blob/71db5dbcd714b2e1297c4...
The XOR operator?
This post doesn't think so: https://stackoverflow.com/questions/5889238/why-is-xor-the-d...
This is easy to do in all sane hash map designs, and is very fast in a linear design like Abseil's Swiss Tables.
Also sadly C++ std::unordered_map is guaranteed to be not just a hash table but an open hash table, using buckets to keep all the stuff which collided together. This is probably not what you wanted, but too bad that's what was standardized.
std::map actually seems to fit this role better. It works reasonable well for many workloads and types without tuning a bunch of parameters.
I’m just working back to first principals. You can be happy without the legal Russian Roulette of marriage is my overarching thesis, and I apologize again it took so many words to arrive at my point.
Just to add, here are a few other things that also limit your day to day freedom and add some risk of legal nightmares:
- operating a business
- owning a home or other building
- running for political office
- raising a child
- using a professional license (medical, law, civil engineer, etc)