Advent of Code 2023 day 5

Today was an interesting problem. We are basically given a map to follow based on a number, possibly transforming the number at each step. With a single number this is quite simple, just apply the rules and step through each set of transformations. The problem becomes tricky when it turns out we have to deal with enormous ranges of numbers. On the subreddit some people reported their implementation to take hours and use 20GB of memory. ...

December 9, 2023 - 3 min Arjen Wiersma

Advent of Code 2023 Day 4

The difficulty is going up and down. This day was quite easy in comparison to yesterday. Today it was about parsing some numbers and finding a set of winning numbers. As I am doing these puzzles in Go I found out that there is no default set type. There is an implementation by HashiCorp named go-set that fills this void. I did not use an external package (I try to avoid them while doing AoC), but I am very tempted to pull that package in. ...

December 4, 2023 - 2 min Arjen Wiersma

Advent of Code 2023 Day 3

Day 3 was quite something. I think that in an attempt to make it harder for AI to solve the puzzles the creators also increased the difficulty level of the base puzzles a little too much. The test was not very clear as to what should happen with negative numbers and it might trip people up. The puzzle itself is a great to exercise grid knowledge as you have to work with neighbors and you have to extend the numbers when you find them. Part 2 was just some bookkeeping on my existing implementation, so it was not too much work. ...

December 3, 2023 - 2 min Arjen Wiersma

Advent of Code 2023 Day 2

Day 2 was another fun challenge. Lots of splitting of strings. I wonder if there is a better way to filter out the min and max value from the separate grabs. I am sure I will not be able to complete all challenges this year, but so far so good. package main import ( "fmt" "os" "strconv" "strings" ) type Grab struct { red, green, blue int } type Game struct { id int grabs []Grab } func main() { content, _ := os.ReadFile("2023/Day02/input.txt") var input []Game for g, l := range strings.Split(strings.TrimSpace(string(content)), "\n") { game := Game{} game.id = g + 1 parts := strings.Split(l, ":") grabs := strings.Split(parts[1], ";") for _, h := range grabs { grab := Grab{} for _, rgb := range strings.Split(h, ",") { color := strings.Split(strings.TrimSpace(rgb), " ") i, _ := strconv.Atoi(color[0]) switch color[1] { case "red": grab.red = i case "green": grab.green = i case "blue": grab.blue = i } } game.grabs = append(game.grabs, grab) } input = append(input, game) } max := Grab{ red: 12, green: 13, blue: 14, } var possible []Game outer: for _, game := range input { for _, grab := range game.grabs { if grab.red > max.red || grab.green > max.green || grab.blue > max.blue { continue outer } } // fmt.Println("Possible game: ", game) possible = append(possible, game) } sum := 0 for _, g := range possible { sum += g.id } fmt.Println("Part 1: ", sum) var powers []Grab for _, game := range input { min := Grab{ red: 0, green: 0, blue: 0, } for _, grab := range game.grabs { if grab.red > min.red { min.red = grab.red } if grab.green > min.green { min.green = grab.green } if grab.blue > min.blue { min.blue = grab.blue } } powers = append(powers, min) } sum = 0 for _, x := range powers { sum += x.red * x.green * x.blue } fmt.Println("Part 2: ", sum) }

December 2, 2023 - 2 min Arjen Wiersma

Advent of Code 2023 Day 1

The Advent of Code has started again. At NOVI we participate with a group of our students. We use the AoC throughout the entire curriculum as practice exercises to learn new programming languages or the application of data-structures and algorithms. Day 1 was a tricky start for most people. Part 1 was not too bad, but part 2 tripped most people up. I guess the idea was that you would have to solve the challenge with an array iteration, but most students tripped up. They tried to match each word and replace the occurrence in the text, running head-on into the edge-case where 2 numbers overlap, such as “eightwo”. ...

December 2, 2023 - 2 min Arjen Wiersma

Embarking on a Journey to Revolutionize Code Editing: The Birth of "BiDE"

As the warm haze of summer gives way to the crisp air of autumn, the season marks a pivotal moment in my academic journey: the commencement of my Master’s thesis project. Having successfully had my research proposal accepted earlier this year, I now face the last leg of this marathon—bringing my theoretical framework to life. The Powerhouse Partnership: Open Universiteit and CWI While undertaking a Master’s thesis is a significant endeavor on its own, I always have to make it more complex. My research will be a collaborative effort between two prominent institutions: the Open Universiteit and the Centrum Wiskunde & Informatica (CWI). ...

September 4, 2023 - 3 min Arjen Wiersma

Perfectionism leads to procrastination and paralysis

Working on my thesis research proposal has been quite the journey, and not always in the direction I would have chosen. A personal revelation that struck me during the process is the tight and rather vexing relationship between perfectionism, procrastination, and paralysis. It’s often said that the perfect is the enemy of the good. In my quest for the ‘just right’ words to articulate my thoughts, I found this saying to be glaringly accurate. The ticking clock became a dull backdrop to my cerebral scavenger hunt. My concentration started to drift and instead of zeroing in on my research proposal, I found myself fixated on, of all things, the color scheme of my desktop environment. ...

June 6, 2023 - 3 min Arjen Wiersma

Using AI in academics

Using AI, in particular generative models such as GPT, are in contention within academics. The purity of academics resides in students writing on their research and having their work peer-reviewed. But how can you now be sure that the student wrote the paper and how can you trust its content? Many universities, including the OU have written about it. The OU published an article in Modulair about it. Generally, the consensus seems to be that it is ok to use AI as an assistant, but you must write your texts. ...

May 20, 2023 - 6 min Arjen Wiersma

Starting my Master Thesis

Today, I took the first step towards starting my master’s thesis. I have decided to document my journey and experiences on my blog. Given that the thesis will play a pivotal role in my life for the next nine months, I expect it to be a thrilling journey. Finding a topic As a student at Open Universiteit in The Netherlands, I had the opportunity to work with the Rascal programming language during the Software Quality Management course. I found the language intriguing and enjoyed working with it throughout the module. After consulting with my professor, we brainstormed various possibilities for my master’s thesis topic, ultimately settling on the creation of a visualization library for the language. ...

April 13, 2023 - 5 min Arjen Wiersma

Open Universiteit: Software Quality Management

Background I have been working on getting my Master’s degree in Software Engineering. To do this I have started following courses at the Dutch Open Universiteit. They have a Master’s program that takes 2 years and you are able to follow it from home. As this is my first post on the courses, I will give some background. As a teacher it is recommended to have a Master’s degree. As I had a whole lot of work experience my teaching activities were not a problem, but from an overall point of view I was advised to pursue an Master degree. As my highest educational level up to now is a Bachelor I first had to follow a pre-master program before I could start the Master program. I will write about my experiences of the pre-master program later. ...

March 25, 2023 - 3 min Arjen Wiersma