Skip to content

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.

Notifications You must be signed in to change notification settings

Mattrobby/Discrete-Structures-Assignements

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Discrete Structures Assignements

Assignment 1

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.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages