You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Write a program in python which asks the user for a positive integer – the $n^{th}$ Fibonacci number the user would like calculated. The program then must calculate the value of $F(n)$ in 2 ways. The program must calculate it according to the recursive definition and then by using the explicit formula derived in class. The program should check that these two values match and return the value to the user.
Assignment 2
Write a program that allows the user to choose to convert a number from $\text{base }16$ to $\text{decimal}$ or $\text{decimal}$ to $\text{base }n$ (your program should have both functionalities). The program should then perform the relevant calculation and return it to the user. You must write the routine for the base conversion – you cannot use a pre-written routine from another library.
Assignment 3
Choose either the greedy algorithm or the edge picking algorithm presented in the graph theory part II slides and video. Write a python program to implement the algorithm you have chosen. Use the European flight schedule problem (beginning on slide 32) as the test case graph to find the “cheapest” solution to the problem.
About
This GitHub repository contains the code for my Discrete Structures class assignments. The assignments are designed to reinforce the concepts learned in class and provide practical applications of discrete structures.