Написать два задания на Python (стек, очередь, дерево поиска)
600 UAHДоброе время суток, Мира!
Мне нужно написать два маленьких задания на Python:
1. Имплементация стека и очереди (не используя лист);
2. Имплементация дерева, двоичного и АВЛ дерева.
(система просит ввести бюджет чтобы опубликовать персональный проект - предложите сколько это будет стоить)
Взгляните пожалуйста!
Lab 1 - Queues and Stacks
Create a file called Lab1-YourStudentNumber.py. Incorrectly named files will receive a mark of zero.
First, create a method called getName() that returns your name. If this does not work, you will receive a mark of zero.
A Node class is given. You are to create Queue and Stack ADTs using a linked implementation. The implementations are linked Nodes.
A class called MyQueue is given. You are to implement the methods enqueue(x), dequeue(), and length(). An item enqueued should be added to the end of the queue, and an item dequeued should be removed and returned from the beginning. The function length() should return the number of items in the queue. This function should be O(1).
A class called MyStack is given. You are to implement the methods push(x), pop(), and length(). An item pushed should be added to the top of the stack, and an item popped should be removed and returned from the top. The function length() should return the number of items in the stack. This function should be O(1).
You cannot use Python's list in your implementation. This includes the methods appends, pop, etc. You must use the Node class given.
Use Lab1Tester.py to test your code
Example command line:
Lab 2 - Trees, BST and AVL
Create a file called Lab2-YourStudentNumber.py. Incorrectly named files will receive a mark of zero.
First, create a method called getName() that returns your name. If this does not work, you will receive a mark of zero.
You are given the class MyTree in the template file. The follow methods getLeft(), getRight(), getData(), are given. Do not change them. The method __init__(x) is also given. You may add to this. You are to implement the insert(x) and getHeight() methods. Each child should itself be a MyTree object.
The insert(x) method should be implemented with a recursive algorithm. The final return is the root node. The getHeight() method should return the height of the node. The height of a leaf node should be zero.
A class called MyBST that extends MyTree is given. Override the method insert(x) to meet the definitions of a Binary Search Tree. Create a method called __contains__(x) that returns true if x is in the tree.
A class called MyAVL that extends MyBST is given. Override the method insert(x) to meet the definitions of an AVL Tree. Create a method called getBalanceFactor() that returns the balance factor of the node. It is suggested that you implement the methods leftRotate() and rightRotate().
Use Lab2Tester.py to test your code
Актуальные фриланс-проекты в категории Python
Найти товарный фид (Google Merchant XML) для сайта на OpenCart
700 UAH
Необходимо найти прямую ссылку на действующий товарный фид (XML) конкурента для Google Merchant Center Платформа (CMS): OpenCart / ocStore Найти оригинальный фидТребования к результату: Рабочая ссылка на XML-файл Python, Парсинг данных ∙ 2 дня 10 часов назад ∙ 22 ставки |
Розработка Тик-Ток фермы (контент-завод)Необзодимо разработать систему для централизованного управления несколькими TikTok-аккаунтами с автоматической публикацией контента, использованием индивидуальных прокси и имитацией естественной активности аккаунтов. Функциональные требования1. Управление аккаунтами Добавление… Python, Разработка ботов ∙ 2 дня 22 часа назад ∙ 19 ставок |
Улучшить работу Claude Code и работа с написанием софтаСейчас разрабатываю СРМ и Аналитику, софт. Делаю через Клод Код, но понимаю что результаты не лучшие в плане изменений. Есть 2 задачи - Нужно помочь сделать пресет по навыкам, мд и так далее чтобы улучшить качество. Взять проверенные с которыми работали, а не с интернета… AI и машинное обучение, Python ∙ 3 дня 4 часа назад ∙ 24 ставки |
Система OCRНужна система распознавания текста на почтовых конвертах (индекс кому - только числа). Текст иногда может быть рукописным. Распознавание марок (подсчет количества и номинала) Python ∙ 3 дня 7 часов назад ∙ 25 ставок |
Создание Human AI Assistant для Telegram-групп### 1.1. Ключевая концепция системы Система должна выполнять две основные функции: #### 1. Анализ клиентской коммуникации AI-ассистент должен автоматически анализировать всю коммуникацию в Telegram-группах и понимать контекст общения. В частности, система должна: -… AI и машинное обучение, Python ∙ 4 дня 19 часов назад ∙ 43 ставки |