Explain what is meant by a monad in a programming language

Assignment Help Software Engineering
Reference no: EM133319696

Problem: Explain what is meant by a monad in a programming language, giving the two fundamental operations of a monad along with their types.

Support Details for the question - 5 (TURN OVER) CST.2016.3.6 5 Concepts in Programming Languages (a) [3 marks] (b) Consider the use of a monad for input-output. For the purposes of this question, Use 20 for your itemsEaten dynamic array size (make sure to use a constant for this).

Use 1-71 as your random range for age when creating Goats that the farmer introduces into the trip (use constants). Use age 10 when creating Goats by twin birth.

Case: I suggest using a vector to hold your trip of goats, but you are free to choose your container. (b.ii) (ii) Five flag bits (ci,oi,np,io,i) in each NTFS access-control entry (ACE) manage how it is inherited. Briefly describe the purpose of each bit. [5 marks] (iii) User mike gives his folder project the following access-control list: project AllowAccess mike: full-access (oi,ci) AllowAccess alice: read-execute (ci,np) AllowAccess bob: read-only (oi) It contains one folder and two text files, none of which have any noninherited access-control entries: projectdoc.txt projectsrc projectsrcmain.c For each of these three objects, list all inherited access-control entries, showing in parentheses the inheritance-control flag bits that are set (using the same notation as above). [5 marks] Describe a dynamic programming algorithm for the longest common subsequence problem. b) Find an alignment for the longest common subsequence of "science" and "engineer". Organize your work in a table with appropriately labeled a columns. Show the aligned sequences. Pseudo code for findLCS() appears after the pseudo code for cutRod(). int cutRod( int [] p ) Initialize. Set n to the length of the prices array p. Allocate space for an array r from 0 ton Set r[ o ] to 0 Loop for j from 1 to n inclusive Set q to -o0 for i from 1 toj inclusive if p[i] + r[ j - i] >q Set q to p[i] + r[j - i] set r[j ] to a Return r[n] int [][][] findLCS( sequence X, sequence Y) Initialize. (cHowever, some applications require the ability to store objects of multiple unrelated types. In this question the aim is to store Integer objects alongside LinkedList objects. (a) One solution is to use ArrayList, since all Java objects extend Object. Explain why this is bad practice. [2 marks] (b) Seeking to provide a solution that allows an arbitrary set of constrained types, a programmer writes an abstract ConstrainedArray base class. To use it, the class is extended and a specialised void add(...) method should be provided for each acceptable type. public abstract class ConstrainedArray { protected ArrayList mArray = new ArrayList(); public Object get(int idx) {return mArray.get(idx);} public int size() { return mArray.size(); } } (i) Show how to a class IntListArray that extends this base class and accepts only Integer or LinkedList objects. (b (b) What is the state transition diagram for this mystery module? [5 marks] (c) If this module were synthesised to the minimum sum of products form, what would the equations be for next state bits s[0], s[11] and s[12]? [110 marks] 2 CST.21084.1.3 3 Data Structures and Algorithms (a) Describe how the Lempel Ziv text compression algorithm works, illustrating your answer by deriving the sequence of numbers and corresponding bit patterns it would generate when applied to a string starting with the following 24 characters:

Don't forget your destructor. Our first analysis will be to satisfy Mrs. A view of revenue by productline - so we have to produce a pie chart with the Cumulation of revenue by productline from Salesview

Secondly we are going to show Mrs Adebambo a line chart of all sales grouped by productline , each productline will be represented in the chart by a different line and color, remember to use the groups function in the charts setting to ensure you show all lines , the x axis of this line chart should show the actual company names, it is recommend that you join your Salesview with the hive table "Company" to get the Name and only return those CompanyID that are numbered less than 11.

Reference no: EM133319696

Questions Cloud

Describe a system which automates everything for its human : Describe a system which automates everything for its human users (describe the functions) Define a metric awareness in unambiguous terms Describe a set
Discuss the importance of cms core components of a cms : Discuss the following: Importance of CMS Core components of a CMS Considerations for building a custom CMS and advantages Categories of different CMS types
Develop a software system which facilitates the recruitment : Assume that you are asked to develop a COVID-19 contact tracing software application. The software aims to facilitate the process of finding people
Examine does c-scan look to survive : Examine does C-SCAN look to survive Routing calculations can be either interface state or distance-vector. Characterize these two terms and make sense
Explain what is meant by a monad in a programming language : Explain what is meant by a monad in a programming language, giving the two fundamental operations of a monad along with their types.
Construction of knowledge and the development of inner peace : COM 371 Arizona State University which language is being put is central to a people's definition of themselves in relation to their natural and social
Create a function called team collaboration : Create a function called team collaboration() . pass two team collaboration software names as the arguments. The function should print "I use software for team
Analysis of platos work with far too little : ENG 111 Wake Tech summary or analysis of Platos work with far too little of your story included. Your narrative is supposed to be the focus while the discussion
Discuss the advantages and challenges of using css : Discuss the advantages and challenges of using CSS on a website. Include at least two advantages and two challenges of using CSS to format a website.

Reviews

Write a Review

Software Engineering Questions & Answers

  Research report on software design

Write a Research Report on software design and answer diffrent type of questions related to design. Report contain diffrent basic questions related to software design.

  A case study in c to java conversion and extensibility

A Case Study in C to Java Conversion and Extensibility

  Create a structural model

Structural modeling is a different view of the same system that you analyzed from a functional perspective. This model shows how data is organized within the system.

  Write an report on a significant software security

Write an report on a significant software security

  Development of a small software system

Analysis, design and development of a small software system.

  Systems analysis and design requirements

Systems Analysis and Design requirements

  Create a complete limited entry decision table

Create a complete limited entry decision table

  Explain flow boundaries map

Explain flow boundaries map the dfd into a software architecture using transform mapping.

  Frame diagrams

Prepare a frame diagram for the software systems.

  Identified systems and elements of the sap system

Identify computing devices, which could be used to support Your Improved Process

  Design a wireframe prototype

Design a wireframe prototype to meet the needs of the personas and requirements.

  Explain the characteristics of visual studio 2005

Explain the characteristics of Visual Studio 2005.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd