Components in a Graph

It is a cloudy day in the Twin Cities of Minneapolis and St. Paul. Today I woke up around 05:00 AM. Read for about 45 minutes and then headed to the kitchen to prepare breakfast.

It is all over the news that most (never say all) states have started updating the stay home orders in order to give people more freedom to do the things we are used to. I fully agree that the economy needs to get back to what it was before the COVID-19 pandemic started. That said, we need to move slowly making sure that there are enough ICU beds for all people that requires them. If such quotas cannot be met, then we need to go back to a full quarantine. This type of cycle is well known and will come in the form of multiple waves.

In particular, in the State of Minnesota, the Mall of America and casinos (e.g., Mystic Lake Casino) are opening. My wife and I do not go to casinos. During the long winter months we go to the Mall of America early mornings before stores open to walk. At that time there are very few people. When we shop at the mall we visit Nordstrom and Macy’s.

Continue reading “Components in a Graph”

Disjoint Union Sets

It is a rainy Sunday morning in the Twin Cities of Minneapolis and St. Paul. Rain started last evening around 08:00 PM and according to the weather forecast will subside later tonight around 10:00 PM. Not a nice day to be outdoors or grilling.

Last Friday my son mentioned that he would be going shopping on Saturday morning to the Costco Minneapolis Business Center Warehouse. My wife and I decided to join him at 07:00 AM (opening time). We met in the parking lot, donned our gloves and mask, and headed in. We have been at the Restaurant Depot many times, but were nicely surprised with the size of the Costco facility and the variety of items. From now on my wife and I will make the trip from home (30 minutes about 20 miles away) a couple times a month to the Costco in Minneapolis. We believe it is worth the drive.

My wife and I cook and bake. I like to bake deserts, breads and Italian cuisine. My wife cooks lunch during the workdays. We both cook on weekends. We have breakfast which I prepare every day and we both skip dinner. The point that I am trying to make is that we did not start cooking or baking due to the coronavirus pandemic.

Last week we noticed that we were running very low on yeast. We went grocery shopping last Tuesday morning and where not able to find yeast at Costco in Eagan, MN or Trader Joe’s in St. Paul. Back home, I went to Amazon.com and ordered a 2 pound pouch of Red Star dry yeast. The total after taxes (we do have Amazon Prime) came to $24.99 USD. I thought it was expensive but it seems that every one and their brother are baking now a day. The delivery will be sometime tomorrow (Monday).

While at Costco we found lots of Red Star dry yeast in the same 2 lb pouches we ordered from Amazon. That is the same yeast we have been using for over a decade. What we found disgusting was that Costco had the same 2 lb pouches of yeast for under $4.50 USD each. We bought two pouches (totaling 4 lbs) for about $9.00 USD. They should last a year or so. Continue reading “Disjoint Union Sets”

Down to Zero – Revisited

!!! NOTE !!!

Not sure what happens with the formatted code which seems to display well and sometimes it does not. The good thing is that the entire code is in my GitHub repository. Sorry about the inconvenience. If you have a formatter for Word Press that you like and is reliable, please let me know.

I received a message from a reader of my blog requesting some clarification on my original solution and associated post Down to Zero II. The associated post was from 2016. The initial code was not in my GitHub repository. Sorry about that.

After reading the message (which I keep private unless told otherwise) I went to GitHub and created a new repository. I added a short and simple README.md file and cloned the repo to one of my Windows 10 computers.

I then copied the original solution.java file and opened it using VSCode. The original code was developed using the Eclipse IDE. In the past year or so I have switched to VSCode for C++, Java, and Python. Continue reading “Down to Zero – Revisited”

Robot in a Grid

This past weekend my wife and I spent time looking for protein-rich groceries. We were attempting to get those and additional items for a few families that wish to stay in lockdown despite the governor of Minnesota starting to relax the lockdown. The current orders went into effect last Saturday April 18, 2020 at midnight. Among the main items is that people in the state can go golfing and shooting in open ranges. Both Saturday and Sunday were sunny days. We could tell for the number of cars and people walking the dogs, jogging and just strolling that many people took advantage of the new rules.

On our side we will continue to try stay home as much as we can by limiting trips to the grocery stores and continue to use Jitsi to communicate more often with family and friends. Continue reading “Robot in a Grid”

Missing Number – Revisited

It is Friday, April 17, 2020 and the COVID-19 pandemic is still around. It seems like China is responsible for this pandemic that has affected the entire world. It is a shame that China put the lives of thousands in front of their reputation and ambitions. Hopefully the world will stop manufacturing products in China. Remember that China copies and steals all product and manufacturing technologies they collect from foreign companies manufacturing there. Continue reading “Missing Number – Revisited”

Compose Ranges

It is a rather cold spring day in the Twin Cities of Minneapolis and St. Paul. I believe there is a winter storm warning for today all day. This morning when I got up, there was a thin coating of snow on roofs and lawns. The roads seem to just be wet. One way or the other my wife and I are not planning on going out. We are under lockdown due to the Wuhan virus (also known as COVID-19) pandemic.

Besides work I have been taking a few courses, reading technical documents, reading non-technical stuff and watching the news. As of today April 12, 2020 in Dakota County, MN (I live in the city of Apple Valley which is in Dakota County) the total number of deaths attributed to the pandemic in

Dakota County is 4 which represents 0.001% of the population. The previous count of 3 held for several weeks. In the USA the total number of deaths is 20,411 which represent 0.006% of the population of about 330 million. Seems like in this area we are doing well. No matter which city or country you live in, please keep social distancing and do not leave home unless it is needed. In order to beat the pandemic we all need to follow social distancing until a vaccine is available or until the CDC (do not trust unofficial sources) informs us that it is safe for people that have antibodies for them to resume normal activities. Continue reading “Compose Ranges”

Contains Close Numbers

It is another COVID-19 (Wuhan virus) pandemic day. Seems like the stats for Minnesota and Dakota Country, the county I live in, are not increasing out of control. As a matter of fact they might be in a plateau. As we speak Minnesota has 34 total deaths which represents .001% of the population, and Dakota County continues to have 3 deaths which represents .001%. Best wishes that things are getting better where ever you are.

Italy is already talking about different ways to get people back to work. Hopefully they can do it in the near future. The United States will hopefully also get back to normal in a month or two. Failure to get the economy up and running will have very bad repercussions. Let’s continue to keep social distance and slow down new COVID-19 cases. Continue reading “Contains Close Numbers”

Graph Multiple Costs

Due to the Corona Virus or COVID-19 the entire world is experiencing situations that we have never seen before. The Internet, TV and other news sources are full of reports. Some of them have good and valuable information while most are just opinions which have no scientific background. We should seek information from reliable sources and when possible check our findings against multiple reliable sources and use common sense, which as we know is not the most common of the senses.

Yesterday evening I started this post and wrote about two pages regarding COVID-19. Today started reading it and decided to delete them with the exception of the first sentence. There is already too much information out there. Please stay home. If you need to go out for groceries, please keep social distance. Healthcare facilities are already taking care of more patients that they were designed for. Continue reading “Graph Multiple Costs”

Sherlock and the Valid String

It is Sunday March 15, 2020 and it is a sunny day in the Twin Cities of Minneapolis and St. Paul. The current temperature is about 22 F. It has gone up a few degrees since I woke up today. The high is expected to be in the low 40’s. It seems like it is going to be a nice warm winter day.

It has been a crazy week. The count of confirmed COVID-19 cases in MN according to the StarTribune up to last Friday was 9. That said; my wife and I decided to get some supplies (e.g., two packages of toilet paper at Costco) and remain at home (with a few exceptions) until the pandemic is under control. I will write a set of posts regarding COVID-19 in a separate category. Continue reading “Sherlock and the Valid String”

Sherlock and Anagrams

The news is full of articles and posts about the corona virus. Before getting in panic mode, stop by the CDC “Coronavirus Disease 2019 (COVID-19)” web page and get informed.

My wife and I follow and watch several YouTube channels. We are mostly interested in foods to prepare and consume and places to visit on our next holiday. Yesterday we watched a new episode on one channel that deals with food and travel in Sicily, Italy. The channel is hosted by a couple of Americans that have roots in Europe and Italy.

They had some interesting facts about how to make a disinfectant using alcohol, aloe vera and some scents. I was not going to mention the specific video, but as I am going over this post, I feel that it is missing. The video is named “SPECIAL EDITION: Coronavirus update from Sicily!”. Quite appropriate for the times we are living in. Continue reading “Sherlock and Anagrams”