Написать 2 задания на Python (стек, очередь, дерево поиска)
16 USDЗдравствуйте!
Мне нужно написать два маленьких задания на Python до 23:59 в Пятницу, 21 Февраля.
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
Applications 2
Client's review of cooperation with Dmytro Ohorodnik
Написать 2 задания на Python (стек, очередь, дерево поиска)Professional and bad work, thank you!
Freelancer's review of cooperation with Yevgeny Kuznetsov
Написать 2 задания на Python (стек, очередь, дерево поиска)Everything is fine, at a high level. I am happy to work with Yugoslavia again.
-
1125 43 0 1 Hello to you. I have been working in Python programming language for three years. I am pleased to write a practical part for the laboratory. Call me, help me.
-
2233 82 0 Good day ,
You are interested in your project and are ready to implement these tasks by 21 February.
With the task I met - to realize everything as classes, I understood correctly?
I will be glad to help you!
Current freelance projects in the category Python
Creation of a multifunctional bot in Telegram
22 USD
(I will provide all materials in private messages) Here is a detailed project description: After pressing the button /start The bot sends a text with rules and terms of use (under the text, the button ‘acknowledged’) After pressing the button, the next message is… Python, Bot Development ∙ 1 day 21 hours back ∙ 91 proposals |
Find a product feed (Google Merchant XML) for a website on OpenCart
16 USD
It is necessary to find a direct link to the active product feed (XML) of a competitor for Google Merchant Center Platform (CMS): OpenCart / ocStore Find the original feedRequirements for the result: Working link to the XML file Python, Data Parsing ∙ 4 days 11 hours back ∙ 25 proposals |
Development of a TikTok farm (content factory)It is necessary to develop a system for centralized management of multiple TikTok accounts with automatic content publishing, using individual proxies and simulating natural account activity. Functional Requirements1. Account Management Adding and removing TikTok accounts.… Python, Bot Development ∙ 4 days 22 hours back ∙ 19 proposals |
Improve the performance of Claude Code and work on software development.I am currently developing CRM and Analytics software. I am using Claude Code, but I understand that the results are not the best in terms of changes. There are 2 tasks - Need help creating a preset for skills, MD, and so on to improve quality. Take verified ones that have been… AI & Machine Learning, Python ∙ 5 days 5 hours back ∙ 26 proposals |
OCR systemA system for recognizing text on postal envelopes (index for whom - only numbers). The text can sometimes be handwritten. Recognition of stamps (counting quantity and denomination) Python ∙ 5 days 8 hours back ∙ 28 proposals |